In the project directory, you can run:
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 test runner in the interactive watch mode.
Test will use .env.development
file which contain all environment variables.
See the section about running tests for more
information.
Builds the app for pre-production to the build
folder.
It will use .env.preproduction
file which contain all pre-production environment variables.
It correctly bundles React in pre-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!
See the section about deployment for more information.
Like for npm run build_preprod
this command do a build but use .env.production
file which contain all production
variables.
Run tests and compute coverage of your code.
A suitable command to run while creating your tests. An alternative to npm test
with more information like coverage of
your code by tests. Be careful npm run coverage
is heavier and makes tests slower. Moreover, this command will run
continuously as long as you don't terminate it. This implies that the command needs its own terminal if you don't want
to run and kill it several times in a single development session.
Run linter and tell you which lines don't respect rules. For more information about rules see wiki.
You can learn more in the react-template wki.
To learn React, check out the React documentation.