To set up the project on your local machine, please follow these steps:
- Create a
.env
file in the root directory:- In the root directory of the project, create a new file named
.env
.
- In the root directory of the project, create a new file named
- Add the API base URL to the
.env
file:- Open the
.env
file and add the following line:
REACT_APP_API_BASE_URL=<API BASE URL>
- Replace
<API BASE URL>
with the actual base URL of the API.
- Open the
- Install the project dependencies:
- Open your terminal and navigate to the project directory.
- Run the following command to install all the necessary dependencies:
npm install`
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!