How To Deploy A React App To Github Pages (Simple)

  Рет қаралды 227,880

PedroTech

PedroTech

Күн бұрын

In this video i will go over How To Deploy a React Application really fast!
Repo: github.com/machadop1407/chart...
🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
🐙 GraphQL Course: codedamn.com/learn/graphql-fo...
► Buy Crypto on Coinbase: coinbase-consumer.sjv.io/PedroTech
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: machadopedro.com
Linkedin: / machadop1407
Instagram: / _pedro.machado_
Github: github.com/machadop1407
Business Email: pedro@pedrotech.co
Tags:
- ReactJS Tutorial
- ReactJS and MySQL
- NodeJS Tutorial
- API Tutorial
Timestamps
00:00 | Intro
01:19 | Create Github Repo
03:35 | Installing and Setup
07:50 | Deploy
09:51 | Outro
#reactjs #github

Пікірлер: 406
@linaspliki6589
@linaspliki6589 5 ай бұрын
Heads up to anyone using Vite instead of create-react-app. Vite creates a "dist" folder instead of "deploy" on build so you need to add "deploy": "gh-pages -d dist" instead of "deploy": "gh-pages -d deploy" when adding to scripts. If you don't do this Vite won't locate the "build" folder and the gh-pages branch will not get created.
@vanodee9757
@vanodee9757 3 ай бұрын
You're an amazing person. thank you for this. Been struggling for an entire afternoon.
@Code.J
@Code.J 3 ай бұрын
Thank you very much! :D
@iberry2689
@iberry2689 2 ай бұрын
THANK YOU SO MUCH 😭
@arkansavalder
@arkansavalder Ай бұрын
🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵🥵
@kasho_ali
@kasho_ali Ай бұрын
Thank you so much 😭😭😭❤️
@artisticdevelopment7181
@artisticdevelopment7181 Жыл бұрын
As a self-taught developer it warms my heart to find someone that explains things so well. Thank you thank you thank you.
@hopevandyne3258
@hopevandyne3258 10 ай бұрын
I AGREE!!! Tutorials r usually people giving the steps without any explanation as to why we’re doing it.
@AlamMahmood
@AlamMahmood Жыл бұрын
Man you saved my life. I created an application on React but was having hard time to deploy to github pages..u helped
@rogue2557
@rogue2557 2 жыл бұрын
I read docs, digged stack overflow, etc for 3 hours plus to get by website up, ended up watching your video and voila! Thanks a lot chief, subbed!
@juan83xd
@juan83xd Жыл бұрын
Thank you! I have been trying to deploy my app for hours. Your tutorial was the only one that worked for me. Thank you.
@ummi7292
@ummi7292 4 ай бұрын
I was so lost, confused, distraught because i was facing a roadblock with this deplyment part ...UNTIL i found this !! cant thank you enoough ! May you be blessed!
@jasimrazamomin3117
@jasimrazamomin3117 Ай бұрын
I rarely leave any comments on any video but this worked perfectly for deploying my portfolio. Thank you so much! It took me hours and hours of googling and installing stuff and doing complex things that didn't work but this worked on its first go. Once again thank you for making such a great and straightforward video!
@dailyvictoryy8633
@dailyvictoryy8633 2 жыл бұрын
Loved the video Pedro. The way you teach, I can tell that you fully understand the things that you teach because of how simple you explain it. Even a 7 year old would be able to understand.
@Hacking-NASSA-with-HTML
@Hacking-NASSA-with-HTML Жыл бұрын
Thank you, sir, So Much👍! You are my Hero! So simple and easy in ten minutes to deploy an app with your guidance! I have my first react app deployed to gh-pages🤝 it works ✅
@DungLearnThings
@DungLearnThings Жыл бұрын
I love you man :)) not only did you show us how to deploy but also explain some "aside" things and i like that
@p.rusinov8732
@p.rusinov8732 Жыл бұрын
Thanks a lot! Best react course i've seen on youtube keep going!
@zzzzzzzzzz3567
@zzzzzzzzzz3567 Жыл бұрын
You are amazing. The way you explain is so clear and easy to follow. Thank you so much!
@marcosmeneghetti3261
@marcosmeneghetti3261 Жыл бұрын
Obrigado, Pedro, pelo super tutorial. Estou aprendendo bastante contigo. Forte abraco.
@nabilhaouam8497
@nabilhaouam8497 Жыл бұрын
thank you , this helped so much I've never used github pages before and this tutorial made it easier
@stransey
@stransey Жыл бұрын
Thanks, your tutorial is better than all i found in the internet
@kalinaszek
@kalinaszek Жыл бұрын
helped me done task on deadline, great video, straight to the point
@anselmpeter
@anselmpeter Жыл бұрын
Today I deployed my site after the efforts and learning of many days. Thanks to PedroTech for this awesome very straightforward video to help me through the way.
@febindevassia333
@febindevassia333 10 ай бұрын
Thank you so much for this bro. I'm an aspiring react developer from KERALA,INDIA. This video helped me a lot to deploy and publish my website properly . Thanks a lot.
@asaventurasderobson
@asaventurasderobson 2 жыл бұрын
Thank you man, that is an absolutely great tutorial, hard to find these days.
@user-lm2cg8kv3w
@user-lm2cg8kv3w 8 ай бұрын
thank you so much i was struggling with this for a while ! this is the easiest video to follow!
@kayraczerniewicz5047
@kayraczerniewicz5047 8 ай бұрын
Thank you so much! excelent tutorial, been looking for this everywhere!
@luan_ferreira_
@luan_ferreira_ Жыл бұрын
Thank you so much my guy, I looked for several videos here from my region Brazil, and none really helped me, yours was the most complete and correct, and by the way, your name "Machado" is the same as an important Brazilian writer Machado de Assis.
@codingwithkenny6492
@codingwithkenny6492 2 жыл бұрын
Thank you so much! I used to struggle so much with the entire process involving using the terminal. This is the best tutorial I've found and it was also very easy to follow along! You just earned a new subscriber 😉
@TheJockerproductions
@TheJockerproductions Жыл бұрын
Litteraly the best explanation i found so far! thank you so much
@chandrashekharbhagat2435
@chandrashekharbhagat2435 Жыл бұрын
very clear and smooth explanation , thanks buddy!
@liliyao317
@liliyao317 Жыл бұрын
Thank you so much! I finally got my pages after so many tries.
@aabhasjain96
@aabhasjain96 Жыл бұрын
Thanks Pedro for everything, I am loving your content. From last one week I have started watching your videos and there isn't a single day when I haven't watch your video. Thanks once again ❤❤
@Amsanc
@Amsanc Жыл бұрын
Graças a você consegui finalmente publicar o site. Muito obrigado Pedro.
@MeriThrash
@MeriThrash 2 жыл бұрын
Thanks dude! I couldn't find a decent tutorial and this helped a lot. I'm suscribing right now and I'll surely look your other videos. Thanks you soooo much!
@moonchild_ankita
@moonchild_ankita Жыл бұрын
Thank you so much for the video. This helped me a lot. I didn't knew the script order was the issue.
@vivianeups
@vivianeups 2 жыл бұрын
Great, thank you so much! It worked to me to deploy my first react-app!!
@j13131
@j13131 Жыл бұрын
Thank you! It take me several tutorials to get it done.
@vasilemidrigan50
@vasilemidrigan50 2 жыл бұрын
Thank you so much, I spent all day and finally did it!
@sayyedsameerbasir2593
@sayyedsameerbasir2593 Жыл бұрын
Really helpful video, you solved the problem for which i m struggling from last 1 month
@daniorandi2232
@daniorandi2232 Ай бұрын
First tutorial that actually worked for me, I appreciate it
@ajaybisht1658
@ajaybisht1658 2 жыл бұрын
You made this so easy, thanks a lot
@nurdanokcu3906
@nurdanokcu3906 Жыл бұрын
Loved it , very easy to understand. Thank you.
@malouette3991
@malouette3991 Жыл бұрын
Thank you for the clear explanations! It worked perfectly!
@UAV_Musafhir
@UAV_Musafhir 2 ай бұрын
youre amazing bro. simple steps. Tysm
@kritidwivedi7744
@kritidwivedi7744 Жыл бұрын
THANKYOUUUUUUUU, HAD BEEN STRUGGLING A LOT FOR THIS
@user-nj3lg7wi5r
@user-nj3lg7wi5r Жыл бұрын
I thank you for this tutorial. It helped me a lot to deploy React apps. 10 bows to you.
@gcsandesh
@gcsandesh 2 жыл бұрын
I searched for this problem everywhere, finally this video helped me solve the problem of deploying the react app. When I deployed the app I would get a blank page on the github page. But I followed your steps and it worked. The key is to 1. "put the scripts in order" and 2. "put the homepage url correctly".
@liliyao317
@liliyao317 Жыл бұрын
I faced the same problem, and after following this tutorial, I still got a blank page... 🤣
@keldrogo175
@keldrogo175 Жыл бұрын
@@liliyao317 did you find a solution to that ?
@dylaneamos
@dylaneamos 11 ай бұрын
@@liliyao317 Same man. I AM STILL GETTING A BLANK PAGE AND I DO NOT KNOW WHY and it's irritating hahaa. Incase you found the solution please share.
@anon00s
@anon00s 7 ай бұрын
worked for me ty
@bryan.gonzales
@bryan.gonzales 5 ай бұрын
bro i just did it and i got the same white blank page. been at this the whole day@@dylaneamos
@shivsaxena90
@shivsaxena90 Жыл бұрын
that's what I was looking for thank you (dhanyawad)
@user-pk1so3dg2v
@user-pk1so3dg2v Жыл бұрын
I spent three hours alone but thanks to this video I solved problem at once Thank you very much
@abdullahm6238
@abdullahm6238 10 ай бұрын
i have been searching for this for ages
@19xalex89
@19xalex89 Жыл бұрын
Thank you very much. Your help was invaluable and I cannot thank you enough
@Matt_Kumar
@Matt_Kumar 6 ай бұрын
Thank you for the video, it was easy to follow and I was able to get my page up with ease!
@umaimafaisal6396
@umaimafaisal6396 Жыл бұрын
You saved my life, thank you for existing
@InvocateurSkyword
@InvocateurSkyword Ай бұрын
you literally saved my day, thank you so much
@shubhamaryan6064
@shubhamaryan6064 Жыл бұрын
Very well explanied . Thanks a lot dude !!
@lhomme_flaneur
@lhomme_flaneur Жыл бұрын
thank you man! that helped me a lot! keep postin
@t-uzithehunterxx5879
@t-uzithehunterxx5879 Жыл бұрын
sabia que tu era br!! muito bom teus videos, o curso de react pra iniciantes me deu uma ajuda absurda. valeu pedro tech, tamo junto
@griffinkirkland9087
@griffinkirkland9087 Жыл бұрын
muito bom, gosto do conteúdo dele
@OddSpeech
@OddSpeech Жыл бұрын
This helpped more than the documentation
@vijayarajfullstack
@vijayarajfullstack Жыл бұрын
Thank you , Good explanation , Love from India
@codingcody
@codingcody Жыл бұрын
Very good and detailed explanation. Thank you
@kennethimade4637
@kennethimade4637 2 жыл бұрын
thanks for making this video, really helped me out
@vantal4115
@vantal4115 Жыл бұрын
thank u so much .. i am in love with your teaching
@mohammedammarkurabi7520
@mohammedammarkurabi7520 Жыл бұрын
Many thanks. Excellent tutorial
@robertobenedit
@robertobenedit Жыл бұрын
Perfect! everything is working just fine!
@PatrikRasch
@PatrikRasch Жыл бұрын
Here again after finishing my newest project, thank you again! 😂👏
@MrBox4soumendu
@MrBox4soumendu Жыл бұрын
You are always a boss, following you from long back. ❤
@pepsicolla123
@pepsicolla123 6 ай бұрын
Thank you very much! It worked! 🎉❤
@MrBill007
@MrBill007 10 ай бұрын
You've earned yourself a subscriber sir !! you are amazing
@ThColinPereira
@ThColinPereira 2 жыл бұрын
Super helpful as always!
@mattholsten7491
@mattholsten7491 2 жыл бұрын
Just a perfect video. Thanks homie.
@poeticider
@poeticider Жыл бұрын
this helped me out a lot. many thanks!
@ylahti6
@ylahti6 2 ай бұрын
Thank you! I've been battling this issue for the WHOLE DAY - I'm such a noob D:
@mennaelshahawy8207
@mennaelshahawy8207 5 ай бұрын
Thank you so much 😍 This was really helpful.
@JoseGomez-ie3mi
@JoseGomez-ie3mi 2 ай бұрын
You are amazing.. So well explained.
@bestakuma11
@bestakuma11 Жыл бұрын
I appreciate...i love the part u talked about running "npm deploy" so many times.
@davitazariani5009
@davitazariani5009 7 ай бұрын
Thanks, very useful for beginners👍🏾
@macskology
@macskology Жыл бұрын
Thanks a lot! This was so clear.
@grandorf5967
@grandorf5967 Жыл бұрын
Great tutorial! It's just awesome!
@tomjohansson3520
@tomjohansson3520 Жыл бұрын
I followed this video and was surprised at the ease to follow along. Now i have a working github page where i can document my progress as i learn to code. i would love to see a follow up on how to add a github action to check if code is working before building
@jreezy6047
@jreezy6047 Жыл бұрын
Thank you so much! Very helpful!
@shirouF
@shirouF 11 ай бұрын
My deployed site showed a blank page, and using HashRouter instead of BrowserRouter in my index.js file fixed the issue. Hope this helps anyone else facing the same thing. Thank you for the well put video!
@giffarialfarizy7310
@giffarialfarizy7310 2 жыл бұрын
Thanks. I really need this kind of videos!
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad it was helpful!
@user-uv7ym9hz2x
@user-uv7ym9hz2x Жыл бұрын
yeeees! it works. Thanks a lot
@djlastnight1
@djlastnight1 Жыл бұрын
Very usefull video! Thx
@howtodoit1111
@howtodoit1111 Жыл бұрын
Thank you so much, brother! You earn a subscriber.
@devstuff92
@devstuff92 2 жыл бұрын
I love your videos man, I can't thank you enough! Question though, totally new with React here, we don't need to use" npm react build" before deploying our app to a github repository?
@fotios4902
@fotios4902 2 жыл бұрын
Good that you mention that it takes a while after the page is actually visible in the address.
@Amankumar-vv2cx
@Amankumar-vv2cx 3 ай бұрын
Thank you so much I'm trying since last 4-5 hours😅
@ramb6500
@ramb6500 Жыл бұрын
thanks so much very simple and easy language you explain ,search so many videos but this is best one thanks ...
@PedroTechnologies
@PedroTechnologies Жыл бұрын
Glad it helped!
@vcodr
@vcodr 10 ай бұрын
very easy and helpful tutorial 🙌🙌
@giorgikiladze1151
@giorgikiladze1151 Жыл бұрын
man thank you very much it was really helpful
@melamelawen
@melamelawen Жыл бұрын
thanks a lot man! This helped me a lot
@PatrikRasch
@PatrikRasch Жыл бұрын
Thank you man!
@visheshpandey2001
@visheshpandey2001 Жыл бұрын
So if anyone wants to know how to keep updating the gh-pages with main branch then you have to simply do one thing : update your main branch and commit changes.. once it is done then .. again run the command in terminal : npm run deploy now after you will run this command it will update the gh-pages automatically Thank you
@andresfelipecanobotero8814
@andresfelipecanobotero8814 Жыл бұрын
When I do 'npm run deploy' I get the following error: 'gh-pages' is not recognized as an internal or external command, operable program or batch file. This is after successfully deploying my site and pushing changes to the main branch. Does anyone know why? EDIT: Figured it out, gotta make sure 'gh-pages' is in your dependencies in the package.json file. If not, gotta rerun ''npm install gh-pages' and try 'npm run deploy' again!
@visheshpandey2001
@visheshpandey2001 Жыл бұрын
@@andresfelipecanobotero8814 Oh great! I was about to answer.
@felipenegreiros1914
@felipenegreiros1914 Жыл бұрын
@@visheshpandey2001 I got a different error: npm run deploy> ENOENT: no such file or directory, stat 'G:\programing\portfolio\portfolio\build' PS G:\programing\portfolio\portfolio>
@trexon2360
@trexon2360 11 ай бұрын
@@felipenegreiros1914 in your package.json file you edited, change "deploy": "gh-pages -d build", to "deploy": "gh-pages -d dist" when you you run build, it builds into the dist folder and not the build folder
@shadowysuper-coder6120
@shadowysuper-coder6120 5 ай бұрын
@@trexon2360 thank you so much for this reply, I fixed the ENOENT error and now have the Published message at the end ❤❤
@ChinonyeremBlessing-ty1ic
@ChinonyeremBlessing-ty1ic 6 күн бұрын
Thank you so much for this 😊
@anasfaisal5433
@anasfaisal5433 2 жыл бұрын
thanks a lot! it's helping me on my course task, i'm from Indonesia by the way. And in Indonesia we'll say "mantaps 👍"
@szymonduranowski4510
@szymonduranowski4510 2 жыл бұрын
omg tysm for such a great tutorial
@user-jm7xn8li5g
@user-jm7xn8li5g 11 ай бұрын
thank you for that clear explanation :)
@animeshkalita9342
@animeshkalita9342 Жыл бұрын
Thank you so much for this video
@kalustepheneke1838
@kalustepheneke1838 Жыл бұрын
Excellent. Thank you very much 😊
@lindaroy3453
@lindaroy3453 2 жыл бұрын
Thanks very much the video was of great help
@waelsta3103
@waelsta3103 2 жыл бұрын
Ure my age and honestly ure such an inspiration … keep going man i love your videos
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you hahaha If it serves as motivation, I started learning react in the beginning of 2020 so you can learn a lot in a small amount of time!
@codeWithSyam
@codeWithSyam Жыл бұрын
Thanks mate Really helping
@dosbolaliev5718
@dosbolaliev5718 Жыл бұрын
Thank you so much bro, I really appreciate it
@ahmedbelloula9268
@ahmedbelloula9268 Жыл бұрын
it works pefectly .. thank you
Деплой SPA (Vite + React + Router) на GitHub Pages
37:23
Игорь Антонов — про JavaScript и разработку
Рет қаралды 4,8 М.
How to Deploy React App to GitHub Pages
13:25
Telmo Sampaio
Рет қаралды 193 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 61 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 52 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 26 МЛН
What Are Product Goals & When Do Product Owners Create Them?
4:52
Mountain Goat Software
Рет қаралды 97
Deploy Your React App on GitHub Pages in 5 Minutes!
6:39
Code With Yousaf
Рет қаралды 1,3 М.
The Best Way to Host & Deploy a React Application
11:00
JavaScript Mastery
Рет қаралды 240 М.
7 better ways to create a React app
7:08
Fireship
Рет қаралды 522 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 416 М.
How to put an HTML website online (on the Internet)
29:37
SuperSimpleDev
Рет қаралды 1,5 МЛН
Host React.js App for FREE in 5 mins with GitHub Pages
6:17
James Grimshaw
Рет қаралды 93 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 563 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 7 МЛН
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 6 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 3,6 МЛН
Lid hologram 3d
0:32
LEDG
Рет қаралды 5 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 1,3 МЛН