React Deploy Demo- ReactJS projects
https://ayushkul.github.io/react-deploy-demo
Video Tutorial -
https://www.youtube.com/channel/UCbaR6YYn5VGXrR5_f-4tNsA
Development steps-
-
Create React App using npx create-react-app
-
Add Github pages dependency
-
Add homepage url in package.json
"homepage": "http://{username}.github.io/{repo-name}"
-
Add deployment scripts in package.json
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
-
Add your project to a remote git repository
git init
git remote add origin git@github.com:{username}/{repo-name}.git
-
Now deploy it to GitHub Pages. just run the following command :
npm run deploy