This project was bootstrapped with Create React App.
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables (see below)
- Start the development server:
npm start
Create a .env
file in the root directory and add the following:
For production, set REACT_APP_API_URL
to your production API URL.
Eg. REACT_APP_API_URL=<your_api_url>
npm start
: Runs the app in development modenpm test
: Launches the test runnernpm run build
: Builds the app for production
This project uses ESLint and Prettier for code linting and formatting. Make sure to install the following VS Code extensions:
- ESLint by Dirk Baeumer
- Prettier - Code formatter by Prettier
The application uses Axios for API calls. The base URL is set in src/services/API.js
:
export const apiUrl = process.env.REACT_APP_API_URL || 'http://localhost:5000';