In this tutorial, I show how to upload a React app to GitHub pages. I show the exact steps that you can follow to easily and quickly upload a react app with GitHub pages.
NPM command to install Gh-pages package: npm i gh-pages
GitHub Package.json scripts:
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
Chapters:
0:00 Intro
0:05 Final Result Demo
0:10 Create GitHub Repo
0:17 Clone GitHub Repo to Local Machine
0:31 Create React App
0:50 Move React Files to Root Directory
1:22 Add Homepage Key to Package.json
1:52 Install Gh-pages Package
2:10 Add Deploy Scripts to Package.json
2:30 Push Code to GitHub Repo
2:40 Run NPM run deploy Command
2:56 Test GitHub Pages Link
3:11 Outro
#github #pages #react #tutorial
😄 Want to support and help grow my channel?
Consider purchasing (name your own price) my Postman Collection file that has all of the API calls that I have ever made from my API Tutorial series: https://andystechtutorials.gumroad.co...
☕ Love my video and want to support me?
👉 https://www.buymeacoffee.com/andystut...
Technology that I use for my workflow setup:
Anker PowerCast M300 - https://amzn.to/3zlWh6z
Anker Wireless Vertical Ergonomic Optical Mouse - https://amzn.to/3LDhSxI
Apple 2021 MacBook Pro - https://amzn.to/420zCtJ
Apple AirPods Max Wireless Over-Ear Headphones - https://amzn.to/3LyGRSH
*The links above include affiliate commission or referrals.