React.js on Github
-
DevOps
- Step 1
In the root
git init
git add .
git commit -m "comment"
- create a repository on github and
- copy the commmands
- Step 2
npm install gh-pages --save-dev
- Step 3
Edit file
package.json
homepage:https://USERNAME.github.io/REPOSITORYNAME/
// BELOW START SCRIPT
predeploy:npm run build
deploy:gh-pages -d build
- Step 4
Step 1 one more time but add:
git push
- Step 5
npm run deploy
and go to the settings page on github repository
the page will be ready in few minutes