Make sure you have installed yarn
or npm
package manager
The command will install all packages that need to run the app.
node_modules
folder will be created after run this command.
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.
The command is to build the project codes into a build
folder.
The build
folder used to deploy to production server.
You can create a file named .env
to set up environment variables.
Make sure all variables in this file MUST have prefix REACT_APP_xxx
We should use .env
for local only and do not add to git
For production environment variable, we define in .env.production
ex: REACT_APP_SECRET_KEY=abcde
Launches the test runner in the interactive watch mode.
We use jest
and enzyme
and react-testing-library
.