Copy the file .env.example
and rename the new file .env.local
, from this file you can customize the environment variables.
For instance, if you need to run the json-server
in a different port, you can set the JSON_SERVER_PORT
to a different value, for example:
JSON_SERVER_PORT=3001
REACT_APP_API_URL=http://localhost:3001
To launch the application and the json server together, run the command:
npm run dev
It runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Launches the tests
Launches the tests in watch mode
Launches the tests and show the current coverage
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!
TODO