Publish A React App To GitHub Pages - Less Than 3 Minutes

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 130

  • @mak3115
    @mak3115 2 роки тому +25

    This is exactly what I was looking for. Clear, short and straight forward instructions. This is very useful, thank you!

  • @amibangladesh24
    @amibangladesh24 Рік тому +10

    Thanks, Yes! I finally got this React project live after trying it for the last 8 hours.

  • @nickmalzacher8980
    @nickmalzacher8980 9 днів тому

    So short, so easy, much appreciated!

  • @mahvishsadaf3499
    @mahvishsadaf3499 8 місяців тому +4

    i was stuck for 2 days ad your one video really helped me a lot sir , thank you

  • @jayeshchindarkar
    @jayeshchindarkar 14 днів тому +1

    This was a really good tutorial easy to understand. Thanks

  • @m.y.m401
    @m.y.m401 Рік тому +3

    this is great bro. short and precise!!!

  • @larissastack399
    @larissastack399 Рік тому +2

    Literally saved my ass in my project. Thank you for this amazing tutorial. I will absolutely be subscribing.

  • @elvispereira070
    @elvispereira070 9 місяців тому +1

    Friend, I'm from Brazil, my name is Elvis, I'm a front end and I loaded my react project through the visual studio code terminal and only the folder with an arrow appears on github, could you help me?

  • @thinkerhuh
    @thinkerhuh 8 місяців тому +6

    good video, but unfortunately it didn't work for me

  • @manumore345
    @manumore345 Рік тому +6

    for some reason when I do this, the link takes me to the readme file instead of my project, am I doing something wrong?

    • @prudhvidharreddymedapati7451
      @prudhvidharreddymedapati7451 Рік тому

      same, did you find the solution?

    • @KazMaz18
      @KazMaz18 8 місяців тому +1

      Make sure to go to settings, pages, then change the branch from main to gh_pages and press save.

  • @darkwoodmovies
    @darkwoodmovies Рік тому

    Holy shit they made this so simple. Love this.

  • @nicholasdonald4510
    @nicholasdonald4510 Місяць тому +1

    Hi all, I followed this tutorial and when I run the command "npm run deploy" I got the "Published" result but then I get the GitHub Pages 404 error titled "There isn't a GitHub Pages site here." when I try to visit my project site. Can anyone help me please?! Good video btw

  • @KazeChannelKC
    @KazeChannelKC 10 місяців тому

    what if i use pnpm?

  • @p.praneeth5184
    @p.praneeth5184 6 місяців тому +1

    is it free of cost for life time access to the hosted page??what is the platform that is used in this video for hosting the application??

  • @waifufx
    @waifufx 2 роки тому

    Got nice videos, wish to see the channel soar.

    • @codecommerce
      @codecommerce  2 роки тому

      Thank you Odelola! Working on more videos :)

  • @sthulasivasan7516
    @sthulasivasan7516 4 місяці тому +1

    what if i have frontend and backend seperatly

  • @Metalvain4
    @Metalvain4 Рік тому +1

    So straight forward, thank you! Worked first try! Subbed!

  • @omageprosper9673
    @omageprosper9673 Рік тому

    short and sweet, thanks man

  • @WalidAra
    @WalidAra Рік тому +1

    i have a question lets say i updated some lines of codes how can i update the repo ?

  • @ryanjtc
    @ryanjtc 6 місяців тому

    Thank you so much for this video! Much appreciated.

  • @gangsternerdvevo4378
    @gangsternerdvevo4378 3 місяці тому +1

    I got an enoent error after trying to run deploy idk what the issue is

  • @vladpryima235
    @vladpryima235 2 роки тому +4

    Hello from Ukraine bro!
    I`m wasted two days before I found your three-minute video! Thank you.
    Like-button is pressed :)

  • @206_golf
    @206_golf 2 роки тому +5

    Do you know what to do if that link only displays the readme file?

    • @craigjohnson8279
      @craigjohnson8279 Рік тому +1

      In your GitHub repo, go to Settings, and then select Pages.
      Under Build and deployment, change the Branch from Main to gh-pages. It takes about 5-min after that and then you should see your deployed website.

    • @krownklarke
      @krownklarke Рік тому +2

      mine only shows the readme file as well

  • @music_all_night
    @music_all_night Рік тому

    We loved the video thanks for sharing :-)

  • @kevz_codes
    @kevz_codes 8 місяців тому +2

    Does this work if I used Vite for my React Project?

    • @kunalrajput661
      @kunalrajput661 7 місяців тому +1

      ua-cam.com/video/tg-Xgx-lqXM/v-deo.html

  • @chrisvaughan2462
    @chrisvaughan2462 Рік тому +1

    Not working! I'm getting this "Getting Started with Create React App
    This project was bootstrapped with Create React App." instead of my page. . . What to do?

  • @WandaMcCrae-mh4xt
    @WandaMcCrae-mh4xt 6 місяців тому

    Thank you for this concise demonstration! The weird thing is when I follow these steps, my GitHub page only shows my README file, not my build.

    • @DerekGomez-n1w
      @DerekGomez-n1w 5 місяців тому

      I'm having this same problem! Have you found a solution yet?

    • @WandaMcCrae-mh4xt
      @WandaMcCrae-mh4xt 5 місяців тому

      @@DerekGomez-n1w Yes! I don't remember exactly what the issue was, but as a first step, make sure to select gh-pages in the Deployment setup on GitHub when ready to deploy.

  • @curajstefan
    @curajstefan 17 днів тому

    For it is still the blank page. I really can't figure this out. Anyone has an idea on why the homepage is blank ?

  • @SuperoO2
    @SuperoO2 11 місяців тому +1

    Hey so I published my site and it works nicely but the images on my local one broke I don’t know how 😢

    • @DigitalDuck-r4c
      @DigitalDuck-r4c 9 місяців тому

      Did u managed to find the solution for this? I’m having the same issue

  • @JayPatel-o6q
    @JayPatel-o6q Рік тому +1

    Awesome, thank you!

  • @jen-7064
    @jen-7064 Рік тому

    Very useful and concise

  • @wendtoinissaka
    @wendtoinissaka 7 місяців тому +2

    For me, it's my readme page it shows me

  • @ahmedabdelmeguid1131
    @ahmedabdelmeguid1131 Рік тому

    you are professional ..thanks a lot for your videos

  • @castrobertosue
    @castrobertosue Місяць тому

    Do you have to do the git init command?

  • @vladitargovski
    @vladitargovski Рік тому +2

    What I run "npm run deploy" I get an error ENOENT: no such file or directory, stat 'C:\Programming\3DPortfolio\build' has anyone ran into that?

    • @levihinnenthal9636
      @levihinnenthal9636 Рік тому +2

      same problem! still trying to solve, did you find anything?

    • @mattischulz8743
      @mattischulz8743 9 місяців тому

      @@levihinnenthal9636 In the "deploy" script change "gh-pages -d build" to "gh-pages -d dist"

    • @TonyGuizar-bb1yo
      @TonyGuizar-bb1yo 8 місяців тому +1

      my issue was that my build was located in a folder called "dist" not "build". Updating the build path in package.json fixed it.

  • @hadisaadeh4448
    @hadisaadeh4448 2 роки тому +1

    very helpful and useful content, THANK YOU!

  • @gabidrg4008
    @gabidrg4008 2 роки тому +10

    Hi man! I ve done exactly the same but for some reason it shows me a blank page at the end :( instead of the whole site

    • @codecommerce
      @codecommerce  2 роки тому +1

      Are you getting any errors?

    • @gabidrg4008
      @gabidrg4008 2 роки тому +2

      @@codecommerce for some reason it returns what s in the “public” folder of the app , not the rest of the files like normaly should

    • @11.naghmamahtab.27
      @11.naghmamahtab.27 2 роки тому +7

      @@gabidrg4008 have you resolve it? If yes then how because I am also facing same problem

    • @gabidrg4008
      @gabidrg4008 2 роки тому +3

      @@11.naghmamahtab.27 i saved a copy of the project and i ran it again. I gave up on gh pages, couldn t find a fix. I think netlify it s easier to deploy the project on

    • @kobalt4083
      @kobalt4083 2 роки тому +2

      @@gabidrg4008 true but you cant go to different pages(that's what happened to me, i couldnt go to other pages because of the url)

  • @MFA07
    @MFA07 2 місяці тому

    What's the pre requisite for this??

  • @jaywilliamsapar7933
    @jaywilliamsapar7933 Рік тому +1

    This is so straight forward thanks🔥🔥🔥🔥

  • @alejandrocamacho7739
    @alejandrocamacho7739 Рік тому

    Wow, really helpful ❤Thx a lot :)

  • @itsrino9851
    @itsrino9851 Рік тому +1

    thank you sir!

  • @pasghikhami1342
    @pasghikhami1342 Рік тому

    incredible video!

  • @WhiteShadow2929
    @WhiteShadow2929 Рік тому

    solid video thanks

  • @alblanquicett
    @alblanquicett 8 місяців тому

    Thank you man!

  • @spazzels50
    @spazzels50 Рік тому

    gh pages never works for nextjs for me always get different errors

  • @MorningstarMiracle-wi4uq
    @MorningstarMiracle-wi4uq 6 місяців тому

    Pls man can you put the link of the cheat sheet pf the github page .. in the description or comment to get along with script stuff

  • @alfaloverss3116
    @alfaloverss3116 8 місяців тому

    Hii man i face the problem gh page is recognis internal external command

  • @charlenecodes
    @charlenecodes Рік тому

    Thank you so much! This is the best and most concise tutorial for this. However, I have a fullstack app and I want to grab the items for my database. I connected my github to cyclic, but the link for cyclic is only for the backend and not really connecting to my routes

  • @ziadamer7621
    @ziadamer7621 2 роки тому +1

    can u make a react app in a advanced way like a small project but have a lot of feature ?

  • @saadeddhaher1706
    @saadeddhaher1706 Рік тому

    hey i only have 3 Files on my github page static and 2OTHERS

  • @mountaingoatgaminggg9395
    @mountaingoatgaminggg9395 Рік тому

    Might be a bit outdated but I did every step and it keeps trying to clone into my .git file it looks like then I get a Pemission denied (public key) when I try to deploy one of my personal projects

  • @vishnuraj.g9946
    @vishnuraj.g9946 Рік тому +2

    Showing a white screen after deployment and also 404 error in console

    • @thevpshow7859
      @thevpshow7859 Рік тому

      same

    • @vishnuraj.g9946
      @vishnuraj.g9946 Рік тому

      @@thevpshow7859 if you get any solution please comment it🙃

    • @fokspoks
      @fokspoks Рік тому

      same problem, bruh(

    • @Reforge99
      @Reforge99 Рік тому

      @@fokspoks same issue.

    • @Reforge99
      @Reforge99 Рік тому

      @@vishnuraj.g9946 did you manage to find a solution? I have the same issue.

  • @encabsss
    @encabsss Рік тому +1

    Does this works with TypeScript?

  • @user121304
    @user121304 10 місяців тому

    I followed everything u did and still it shows just the readme and not my website

  • @amr8113
    @amr8113 Рік тому

    Still i can't get a clear solution to how you'd update the deployed site, if you tried to push code to github or even rebuild again with deploy it won't work you'll still have the old version

    • @codecommerce
      @codecommerce  Рік тому

      You can run the build and push the changes.

    • @amr8113
      @amr8113 Рік тому

      @@codecommerce thanks, after many attempts I’ve managed to do it.

    • @uronlyyfave
      @uronlyyfave Рік тому

      ​@@amr8113please how did you figure this out? If you can still remember.

  • @ambitious1z
    @ambitious1z Рік тому

    awesome

  • @aboubakarbarro9048
    @aboubakarbarro9048 7 місяців тому +1

    thank😉

  • @Rob-bz2rp
    @Rob-bz2rp 2 роки тому +1

    Thank you

  • @bodychick8994
    @bodychick8994 10 місяців тому

    When I deploy on GH Pages,I have the whitescreennnn :(

    • @codecommerce
      @codecommerce  10 місяців тому

      thanks for the feedback peter - ill keep it down

  • @MorningstarMiracle-wi4uq
    @MorningstarMiracle-wi4uq 6 місяців тому

    Do anyone have the github sheet he use i can get mine done ..

  • @array7an628
    @array7an628 9 місяців тому

    but why she give me 404 error ???

  • @tarun-prakash
    @tarun-prakash Рік тому

    Thankyou

  • @ayman8509
    @ayman8509 2 роки тому

    does this work with next.js

    • @codecommerce
      @codecommerce  2 роки тому +1

      I would recommend checking out vercel! Deploy a Next JS Application - Easy
      ua-cam.com/video/Vcm1anCcuU0/v-deo.html

  • @fjj813
    @fjj813 2 роки тому +1

    🙏🏼

  • @yotsusan_machi
    @yotsusan_machi Рік тому +1

    thanks kyu sir

  • @draz2112
    @draz2112 Рік тому

    Thank you very much. Greetings from Croatia and subscribe from me.

  • @hamidmammadli6360
    @hamidmammadli6360 Рік тому

    gh-pages dont download

  • @krsna13
    @krsna13 Рік тому

    refresh it and boom your site is gone

  • @hanspen5978
    @hanspen5978 Рік тому +1

    404 likes, I dont wanna ruin it 😔

  • @neilkumar3626
    @neilkumar3626 8 місяців тому

    skibidi toilet

  • @TysonBites
    @TysonBites Рік тому

    Thanks man job opportunity popped up but I'm too broke to have a portfolio page but this will do just fine b