first install the node (npm included)
-
npm init react-app workout-planner
-
npm cache clean --force
-
npm install
- install dependencies -
npm install --loglevel=error
- install dependencies without WARN -
npm install -g npm@latest
-
npm audit fix
-
npm update
-
npm start
-
ctrl + c
- to stop app
In the project directory, you can run:
npm run analyze
- generates a report with bundle analysis (requirenpm run build
)npm run build
- builds the production buildnpm run eject
- ejects CRAnpm run lint
- runs ESLint against alljs
codenpm run pre-commit
- runs checks before each commitnpm run prettier
- entry point forPrettier
npm run prepare
- automatically enable git hooks after installnpm run start
- runs the application in development modenpm run stylelint
- runs Stylelint for all styles (bothcss
andcss-in-js
)npm run test
- launches the test runner in the interactive watch mode
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify