docker run -v /mnt/code/repos/:/repos --publish 3000:8000 -d -it --rm --user node --name node-app node:16
docker exec -it node-app bash
npx create-react-app robofriends -y
cd roboriends
npm start
to access development server
Install tachyons a website style framework
npm install tachyons
docker exec -it --user root node-app bash
npm install -g npm
npm audit
npm audit fix --force
- get images from robohash
https://jsonplaceholder.typicode.com/users
git clone https://github.com/ralexrivero/robofriends.git
npm install
npm start
npm run build
- add
"homepage": "https://ralex.me/robofriends"
topackage.json
npm install --save gh-pages
- add the folowing to
package.json
"scripts": {
+ "predeploy": "npm run build",
+ "deploy": "gh-pages -d build",
using user node
npm run deploy
- Set up
GitHub Pages
togh-pages
branch
npm install redux
npm install react-redux
npm install redux-logger
npm install redux-thunk
- update to React.lazy()
http://localhost:3000/?react_perf
- go to developers tools/ performance tab
Allows to see components perfomance