Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.28 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.28 KB

CORS Front-End Starter Project

This project serves as an introduction to handling Cross-Origin Resource Sharing (CORS) issues when interacting with external APIs from a front-end application. It demonstrates best practices for overcoming CORS-related problems in modern web development.

Features

  • Fetches data from external APIs
  • Handles CORS errors in different environments

Installation

  1. Prerequisites: Ensure you have Node.js installed.
  2. Clone this repository:
    git clone https://github.com/Thinkful-Ed/starter-cors-front-end.git
  3. Navigate to the project directory:
    cd starter-cors-front-end
  4. Install dependencies:
    npm install
  5. Start the development server:
    npm start

Usage

To run the application locally, after starting the development server, open http://localhost:3000 in your browser. This project will make API calls and demonstrate how to resolve CORS errors using proxy servers or appropriate headers.

Technologies

  • React: JavaScript library for building user interfaces.
  • JavaScript (ES6+): The core programming language used.
  • Node.js: For managing dependencies and development scripts.
  • CSS: For basic styling.