React projects: Difference between revisions
From wikinotes
No edit summary |
m (Will moved page React environments to React projects without leaving a redirect) |
||
(One intermediate revision by the same user not shown) | |||
Line 29: | Line 29: | ||
<source lang="bash"> | <source lang="bash"> | ||
npm update # install requirements | |||
npm start # run auto-reloading dev server localhost:3000 | npm start # run auto-reloading dev server localhost:3000 | ||
npm test # run tests | npm test # run tests |
Latest revision as of 21:31, 10 December 2022
TODO:
more thorough
Documentation
react environments https://reactjs.org/docs/create-a-new-react-app.html
npx
Creates an empty nodejs react project with jest as a test-suite.
pacman -S nodejs npx create-react-app my-appnode_modules/ public/ src/ package.json package-lock.jsonnpm update # install requirements npm start # run auto-reloading dev server localhost:3000 npm test # run tests npm run build # build/minify into build/ directory