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...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 46

  • @abhinavkumar50362
    @abhinavkumar50362 3 หลายเดือนก่อน +1

    Thank You 😊
    Finally I was able to deploy on github Pages

  • @barsat_yt3446
    @barsat_yt3446 7 หลายเดือนก่อน +1

    watched many tutorials for hours , but this was the final saviour. Thank you so much

    • @ReactLearnerWeb
      @ReactLearnerWeb  7 หลายเดือนก่อน +1

      You're very welcome! I'm delighted to hear that the tutorial was helpful for you.

  • @auracoded
    @auracoded 4 หลายเดือนก่อน

    FINALLY THIS WORKED . THANK YOU SO MUCH

  • @subaash1706
    @subaash1706 6 หลายเดือนก่อน +1

    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.

  • @janmeshrajput9242
    @janmeshrajput9242 หลายเดือนก่อน

    Thank you so much, i stuck for 4-5 hrs due to blank github page, now it works..Thanks.

  • @deakurniaharysandi9763
    @deakurniaharysandi9763 3 หลายเดือนก่อน

    Thankyou, this tutorial is the best, simply and enjoying

  • @adityasahoo506
    @adityasahoo506 2 หลายเดือนก่อน

    after Watching so many videos,finally got the the solution......THANKS A LOT😇

  • @veronicaciuca1843
    @veronicaciuca1843 5 หลายเดือนก่อน

    Thank you so much for this tutorial!!!😍😍😍😍😍🥰🥰🥰

  • @narendra3385
    @narendra3385 5 หลายเดือนก่อน +3

    Whenever clicking on the live link, then No UI appeared on the website after deployment successfully

  • @rohanverma4317
    @rohanverma4317 3 หลายเดือนก่อน

    Thank You!!!

  • @Mr.A-pj7ch
    @Mr.A-pj7ch 10 หลายเดือนก่อน +1

    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! :>

    • @ReactLearnerWeb
      @ReactLearnerWeb  10 หลายเดือนก่อน +1

      Thanks to you, bro. I'm glad to hear that you found a solution to your problem.

  • @mohaymenul-islam
    @mohaymenul-islam 3 หลายเดือนก่อน

    Perfect Man!

  • @kishoregowda8806
    @kishoregowda8806 3 หลายเดือนก่อน

    Nice
    thank you

  • @AbdulRazaq-fv5cp
    @AbdulRazaq-fv5cp 2 หลายเดือนก่อน

    Thanks buddy

  • @nishanthi8365
    @nishanthi8365 4 หลายเดือนก่อน

    Thanks It works. 🥰🥰

  • @90RODan
    @90RODan 6 หลายเดือนก่อน +1

    thanks, man!

  • @user-en2de5hd4c
    @user-en2de5hd4c 23 วันที่ผ่านมา

    Thank you

  • @MolosThaqi
    @MolosThaqi 3 หลายเดือนก่อน

    It worked for me but it shows up as a white page, without my react components. Maybe because i used react-router-dom?

  • @iloveanimals751
    @iloveanimals751 8 หลายเดือนก่อน +1

    working 100%

  • @zeninja5421
    @zeninja5421 ปีที่แล้ว +1

    nice video it helped

  • @Jeeruz
    @Jeeruz 4 หลายเดือนก่อน

    Hi, May I know the documentation where you get all of this, thanks!

  • @fastoche05
    @fastoche05 3 หลายเดือนก่อน

    mine's still not working, and i can't get it to work on namecheap or firebase either. HELP PLZ

  • @gamersgame43
    @gamersgame43 6 หลายเดือนก่อน +1

    Can u make a video on how to make changes locally and reflect them in deployment?

  • @hehebehello2080
    @hehebehello2080 11 หลายเดือนก่อน +1

    thanks bro we react learners have to help each other out lol

  • @gamersgame43
    @gamersgame43 6 หลายเดือนก่อน +1

    bro Its showing a white page and console it shows Failed to load resource: the server responded with a status of 404 ()

    • @ReactLearnerWeb
      @ReactLearnerWeb  6 หลายเดือนก่อน

      check script in package.json

    • @gamersgame43
      @gamersgame43 6 หลายเดือนก่อน

      thanks
      @@ReactLearnerWeb

  • @stephan9279
    @stephan9279 5 หลายเดือนก่อน

    White page is showing bro

  • @user-rd2zx1ri5k
    @user-rd2zx1ri5k 7 หลายเดือนก่อน +1

    U push code in"main branch "How branch is" gh pages" at the time of deployed

    • @ReactLearnerWeb
      @ReactLearnerWeb  7 หลายเดือนก่อน +1

      It's because of the changes in the script file of package.json:
      "predeploy": "npm run build",
      "deploy": "gh-pages -d dist"

    • @user-rd2zx1ri5k
      @user-rd2zx1ri5k 7 หลายเดือนก่อน +1

      @@ReactLearnerWeb ok,thanks yr

    • @ReactLearnerWeb
      @ReactLearnerWeb  7 หลายเดือนก่อน +1

      You're welcome! If you have any more questions or need assistance, feel free to ask.

  • @shivamshende642
    @shivamshende642 6 หลายเดือนก่อน

    Bro my page showing blank after deployment

    • @ReactLearnerWeb
      @ReactLearnerWeb  6 หลายเดือนก่อน

      If you get a live URL, then it means it's deployed, so you should check some package.json file.

    • @JayaPrakash-kg2jn
      @JayaPrakash-kg2jn วันที่ผ่านมา

      ​@@ReactLearnerWebHow to solve this blank screen problem bro

  • @fuxk_relegions
    @fuxk_relegions 6 หลายเดือนก่อน +1

    In the vite file did you give the repository file name or the folder file name?