We'll use React for this project
davis@davis-arch ~ sudo pacman -S nodejs
davis@davis-arch ~ sudo pacman -S npm
davis@davis-arch ~ node -v
v11.9.0
davis@davis-arch ~ npm -v
6.7.0
✘ davis@davis-arch ~ sudo npm i -g create-react-app
/usr/bin/create-react-app -> /usr/lib/node_modules/create-react-app/index.js
+ create-react-app@2.1.3
added 63 packages from 20 contributors in 8.894s
✘ davis@davis-arch ~/projects/docker master create-react-app 04_react_app
Creating a new React app in /home/davis/projects/docker/04_react_app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
+ react-dom@16.7.0
+ react@16.7.0
+ react-scripts@2.1.3
added 1949 packages from 671 contributors and audited 35817 packages in 78.645s
found 0 vulnerabilities
Success! Created 04_react_app at /home/davis/projects/docker/04_react_app
Inside that directory, you can run several commands:
npm start
Starts the development server.
npm run build
Bundles the app into static files for production.
npm test
Starts the test runner.
npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd 04_react_app
npm start
Happy hacking!