Deploy Vite React App on GitHub in 5 Steps
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- Welcome to my TH-cam video! In this short and straightforward tutorial, I'll show you how to deploy a Vite React app using GitHub Pages.
Vite is an amazing build tool for modern web development, and React is a powerful JavaScript library for building user interfaces. By combining these two, we've created an awesome web application.
Now, it's time to take our app to the next level by deploying it to GitHub Pages, a free and convenient hosting solution provided by GitHub.
In this video, I'll guide you step-by-step through the deployment process. We'll create a GitHub repository and push our code to it.
Next, I'll show you how to use GitHub Pages to deploy our app. With just a few simple configurations, we'll have our Vite React app up and running on a live URL!
Whether you're a beginner or an experienced developer, deploying apps to GitHub Pages is an essential skill to have in your toolkit. It allows you to showcase your projects to the world without the hassle of setting up separate hosting.
Join me in this quick tutorial, and by the end of the video, you'll have a fully deployed Vite React app accessible to anyone with an internet connection.
Don't forget to like, comment, and subscribe to my channel for more exciting coding tutorials. Let's deploy our Vite React app on GitHub Pages and share our awesome creation with the world!
Timestamps
00:00 Project
00:24 Creating Repository
00:57 Installing gh-pages
01:14 Editing config files
02:44 Adding Project to Git Repo
03:48 Deploying Project
Checkout And Learn More:-
ReactJS: react.dev/
GitHub: github.com/
Credits:-
Music: • Spektrem - Shine | Pro... - วิทยาศาสตร์และเทคโนโลยี
Thank You 😊
Finally I was able to deploy on github Pages
watched many tutorials for hours , but this was the final saviour. Thank you so much
You're very welcome! I'm delighted to hear that the tutorial was helpful for you.
FINALLY THIS WORKED . THANK YOU SO MUCH
Watched so many videos, but this actually worked. The steps were easy to understand and I was able to know which step I am currently doing as a beginner. Thanks for this.
Thanks!
Thank you so much, i stuck for 4-5 hrs due to blank github page, now it works..Thanks.
Thankyou, this tutorial is the best, simply and enjoying
after Watching so many videos,finally got the the solution......THANKS A LOT😇
Thank you so much for this tutorial!!!😍😍😍😍😍🥰🥰🥰
Whenever clicking on the live link, then No UI appeared on the website after deployment successfully
Thank You!!!
Thanks bro. I had difficult looking for working solution I watched many tutorial on how for a few hours and this is the only one worked!! Great Job! :>
Thanks to you, bro. I'm glad to hear that you found a solution to your problem.
Perfect Man!
Nice
thank you
Thanks buddy
Thanks It works. 🥰🥰
thanks, man!
Glad to help!
Thank you
Bro we have to install on pc GitHub
It worked for me but it shows up as a white page, without my react components. Maybe because i used react-router-dom?
working 100%
👍😊👍
nice video it helped
Glad to hear! Thank😇😇
Hi, May I know the documentation where you get all of this, thanks!
mine's still not working, and i can't get it to work on namecheap or firebase either. HELP PLZ
Can u make a video on how to make changes locally and reflect them in deployment?
thanks bro we react learners have to help each other out lol
yeah !😁😁😂
bro Its showing a white page and console it shows Failed to load resource: the server responded with a status of 404 ()
check script in package.json
thanks
@@ReactLearnerWeb
White page is showing bro
U push code in"main branch "How branch is" gh pages" at the time of deployed
It's because of the changes in the script file of package.json:
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
@@ReactLearnerWeb ok,thanks yr
You're welcome! If you have any more questions or need assistance, feel free to ask.
Bro my page showing blank after deployment
If you get a live URL, then it means it's deployed, so you should check some package.json file.
@@ReactLearnerWebHow to solve this blank screen problem bro
In the vite file did you give the repository file name or the folder file name?
Repository name.