Тёмный

3.5 Web Application Deployment (Glitch and Heroku) - Working with Data and APIs in JavaScript 

The Coding Train
Подписаться 1,7 млн
Просмотров 133 тыс.
50% 1

💻github.com/CodingTrain/Intro-...
Let's figure out how to deploy your project to a server so that people can access it and use it. We will check out two hosting options: Heroku and Glitch.
🔗 Glitch: glitch.com/
🔗 codingtrain-the-weather-here....
🔗 Heroku: www.heroku.com/
🔗 the-weather-here.herokuapp.com/
🎥 PREVIOUS LESSON: • 3.4 Hiding API Keys wi...
🎥 FULL COURSE: • Working with Data and ...
🚂 Website: thecodingtrain.com/
💖 Patreon: / codingtrain
🛒 Store: www.designbyhumans.com/shop/c...
📚 Books: www.amazon.com/shop/thecoding...
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 240   
@GlitchDotCom
@GlitchDotCom 5 лет назад
Thanks for using Glitch! We love your videos
@TheCodingTrain
@TheCodingTrain 5 лет назад
Thanks for making such a great platform!
@v0oi
@v0oi 4 года назад
Glitch I Have A Question How To I Use PHP In Glitch> index.php puts me in the file select
@chanukhumanthem2242
@chanukhumanthem2242 3 года назад
Ll0l0l) pmme select tyypupopoo{Ooooooooooooooooooop
@hanseldsilva2393
@hanseldsilva2393 3 года назад
@@chanukhumanthem2242 your keyboard's broken
@Anto-mi5pn
@Anto-mi5pn 3 года назад
How to make the website's name the same as my repo name? It's randomly generating a name for my site?
@sivach8667
@sivach8667 3 года назад
One of the most beginner-friendly channel I've seen... From "zoom-in, zoom-out" to show the code, to explaining the big-picture of what we're doing... It's great.
@AtinSinghal
@AtinSinghal 3 года назад
The enthusiasm is surreal. I was kinda sleepy when I discovered your channel and opened your first video and now I’m like energised completely, have watched 3 of your videos & going back to my work desk instead of going for a nap.
@thecoffeegod
@thecoffeegod 5 лет назад
I really enjoyed watching this whole course! Good job with the presentation Dan :)
@marvinlemos
@marvinlemos 3 года назад
I've just finished this course!!! Thank you so much Dan, for inspiring people to do great things.
@XiagraBalls
@XiagraBalls 4 года назад
Daniel, that was an excellent series. Woke up at 3am this morning (damn coffee! ☕️😀) and binge watched all 3 sections. Great job! 👍🏻
@MarkSatin1
@MarkSatin1 2 года назад
I really like your energy and excitement about coding, and I appreciate that you're always the first to admit you probably made a mistake somewhere/forgot some piece of code. It's so honest.
@thales2008
@thales2008 5 лет назад
Watched the whole series and I can say that this is probably the best course on this subject that I've ever had. Never really understood the server side of Javascript quite well, but now it seems so much easier! Splendorous teacher. It would be also amazing if someday you could continue the series using a frontend javasciprt framework, like React haha
@DamienzTheBand
@DamienzTheBand 4 года назад
Fantastic tutorial! Love the energy. Glitch seems like a great place to make a dev project with a team or a group in learning.
@ahmadkassem7883
@ahmadkassem7883 4 года назад
I really enjoy to watch you explain things so smoothly and clearly, I am learned a lot from you
@kirammanenjoyer
@kirammanenjoyer 5 лет назад
I learn so much fron this cours ( I've done my first ever multiplayer game I was so happy). Thanks Dan!
@AdityaSingh-kt9uy
@AdityaSingh-kt9uy 2 года назад
Can you please guide me I am unable to do so after so many tries
@viruspk
@viruspk 4 года назад
I watched the whole course and it is great, keep up the good work 🌈🚂
@jonbikaku6133
@jonbikaku6133 5 лет назад
Dont have to remind you how beautiful your videos are. I have been telling my highschool students who are learning Java and processing to keep an eye on your videos and they're already making awesome stuff like pong and space invaders. Keep motivating people dude!
@godetarnaud1005
@godetarnaud1005 4 года назад
Yes ! Finally finished this awesome course, I learnt a lot while doing it and I'm really thanks full to you for making such great and interesting tutorials :D Now it's time for me to start another one of your tutorials ^^
@davidklap7517
@davidklap7517 2 года назад
I have learnt so much in the past 2 hours or so, you have a talent for teaching and presenting information, thank you 🙂
@grainfrizz
@grainfrizz 5 лет назад
Daniel, you're saving the world one coding video at a time. We don't deserve you. But thank you for existing. Love from the Philippines.
@bluedragonn1
@bluedragonn1 4 года назад
Course finished, I feel so satisfied with this course-tutorial. I am studying telecommunications and i feel so inspired to do more stuff.
@bhatnagarcapital
@bhatnagarcapital 4 года назад
I am amazed .Earlier I did not think much of this channel .But I am blown away by this lecture .Wow and Amazed .In love with you man .Thanks .Completed deploying a project just because of this piece of art .❤️
@codyw9296
@codyw9296 3 года назад
Great job with the presentation and explaining complicated procedures in a simple way. Keep these tutorials coming!
@medicaldevices832
@medicaldevices832 4 года назад
Hello Daniel, the series was fantastic and awesome. I'm new in programming and your videos really helps and also encourages me to continue to this long journey. Hope to get more help and counselings from you. THANK YOU VERY MUCH...
@rinkumonani961
@rinkumonani961 3 года назад
Its 2 a.m. right now and I don't need coffee to stay awake! What is this enthusiasm of yours?! Great Videos! Great Series!
@stephenmaro7219
@stephenmaro7219 2 года назад
THANK YOU FOR THIS AMAZING PLAYLIST, I had a similar project and this was the most helpful thing, the way you deliver the information keeps us motivated, continue the good work.
@liamnightingale4088
@liamnightingale4088 5 лет назад
You are such a treasure! Exactly what I needed to get into coding. ♥
@patrickc.6183
@patrickc.6183 4 года назад
THANK YOU! I had my .env variables missing from my Heroku deployment, which needed to be configured (as you showed) to work properly! You rock! :)
@c810549
@c810549 5 лет назад
This series of video is truly amazing. There were a lot of enlightening moment while watching your video. A lot of concept used be fussy for me, now I feel I’m truly understood after watch your videos. Your are such great teacher. Thank you for million times.
@Danielt240397
@Danielt240397 3 года назад
your enthusiasm while explaining is amazing! keep going dude...I'm sure you deserve more subscriptors
@mostafamohammed4853
@mostafamohammed4853 3 года назад
The second course to watch from you... you are an amazing man all love ❤
@jonaszangetzu
@jonaszangetzu 5 лет назад
Thanks!!! It was an awesome!!! I saw all the modules and learn a lot, I will see more playlist from your page, keep the good work :)
@jrichalot
@jrichalot 4 года назад
Watched the whole course and it was fantastic. So many ideas to implement! Thank you so much. My oh so modest contribution... you're doing so many console.log('something'), you could use a neat VSC extension called Turbo Console. Once installed you select a var/let/const and press CTrl+Alt+L (or whatever the MAC OS equivalent is) and it inserts a controle.log(that_variable) on the next line even referencing in a string the function the variable belongs to. It saves a bit of time and a few typos.
@davidblake8612
@davidblake8612 2 года назад
Just watched this course plus a few other videos. Really good content. And really well taught. Thanks so much.
@techmarinar
@techmarinar 3 года назад
thanx man , I found this channel by Accident by its was full of stuff I was looking for for long time , thank you very much
@KamilKaszubski
@KamilKaszubski Год назад
Thanks for this series - it was really easy to follow and explanatory!
@Thehighschoolscientistforever
@Thehighschoolscientistforever 3 года назад
dude just keep making videos like these -- any video you make will be amazing to watch and will have a boat load of knowledge so just keep posting
@RicardoVelozo
@RicardoVelozo 3 года назад
Excellent! just wanted to see the database part... watched it all! great work! thank you!
@michaelcapone8913
@michaelcapone8913 3 года назад
You really are my favorite youtuber for coding. Thank you very much. I am a university student in CS and I watch your video. They help me a lot.
@cptmaca
@cptmaca 2 года назад
Thanks for the excellent series! Great teaching, very fun and really helpful!
@TheCodingTrain
@TheCodingTrain 2 года назад
Thank you for the support and the kind feedback! ❤️
@kongzilla2897
@kongzilla2897 2 года назад
I really enjoyed the whole course. Thank you so much :)
@yujiyamamoto6551
@yujiyamamoto6551 4 года назад
Nice scenario, nice video editing skills, nice teaching structure you have there!
@chrismorris5241
@chrismorris5241 5 лет назад
I wish I had Daniel's tutorials years ago when I started using Heroku.
@gideonaswani2449
@gideonaswani2449 2 года назад
Awesome video series! Thanks, Dan for sharing your knowledge. I've learned quite a bit
@ykli1441
@ykli1441 4 года назад
1. As of 26 Dec 2019, for those who have trouble cloning Git project to Glitch, credit to craigsdennis, read the post below support.glitch.com/t/unable-to-clone-repo-from-github/16418/14 2. When encoutering "Check /app/package.json command not found" error, please refer to glitch.com/help/failstart/ Thanks Coding Train! Keep up the great work!
@anuraghazra4772
@anuraghazra4772 5 лет назад
thank you for doing this playlist... i was totally frustrated by yesterdays live stream going nuts.
@TheCodingTrain
@TheCodingTrain 5 лет назад
Thanks for sticking with me!
@ankitjaiswal5453
@ankitjaiswal5453 Год назад
It was a really good series. Thanks for making this. I learned a ton from it.
@thaylapedroso3489
@thaylapedroso3489 4 года назад
Thank you very much for this course, I've learned a lot!!! I loved it!!!
@sheenad1324
@sheenad1324 5 лет назад
I really enjoyed watching this series! Want to learn more about password authorization,, token etc
@sby15tv
@sby15tv 3 года назад
I've learned a looooot! Easy to follow and understand. I went ahead and use that knowledge to build my own app. Thank you much!!!
@geoffwagner4935
@geoffwagner4935 8 месяцев назад
"set up a rasberry pi in the wood or something" this i absolutely crazy how versatile this is. im actually getting reasonable with express servers. really changed my entire idea on website building . may hav to get a pi now xD lol most amazing thing ever
@janicuri8258
@janicuri8258 Год назад
Actually the best channel to learn programming.
@ericbeard7007
@ericbeard7007 9 месяцев назад
Yes, I added a laptop to my toolbox. Because this playlist was so awesome, I did not throw my laptop across the room. Im stuck with Google ads api trying to get search volume back from seedKeyword but uses oauth and dev token. This has been so helpful, thank you! Was not sure how tom hide the credentials in folder but use variable so other cant see. Thanks again you really earned my subscribe and praises!
@yulinglin8508
@yulinglin8508 3 года назад
Easy to follow! Thank you so much, I have learnt a lot from your tutorials!
@saramamsarang6586
@saramamsarang6586 3 года назад
Hey man, thanks you surely deserve my subscription , you’re awesome and a wonderful teacher!
@abeechr
@abeechr 5 лет назад
Fantastic, as usual Daniel. Quick request: How about a Docker tutorial?
@ronir.kpradhan1785
@ronir.kpradhan1785 4 года назад
This man is amazing............So much of knowledge for free. Thanks Dan loved it
@smugane
@smugane 2 года назад
There are instructors out there then there is Dan💪. What a super lad, appreciate the course. Where can your students showcase their project remixes?
@jacobjones8099
@jacobjones8099 5 лет назад
I adore you as a person and educator. I am currently applying to fullstack jobs, I can say that if I land one you would be a large contributor to that success. Thank you so much and please keep up the amazing work. Also if you are open to any suggestions, I would love a course on data structures and to see your take on some code challenges(codewars for example).
@MrDiavolo212
@MrDiavolo212 10 месяцев назад
so, what happened? did you get a job as a fullstack?
@wakengames2318
@wakengames2318 2 года назад
Thanks for this series. It really helped!
@ygvanz
@ygvanz 3 года назад
I loved this course a lot. Hopefully we get another similar course to this, but with a database with MongoDB.
@rolandnelson4694
@rolandnelson4694 Год назад
You are a fantastic, fun, fervent, faithful teacher. Thank you for all the effort put into this and for making this so so so easy and fun. I've been infected with your energy
@geoffwagner4935
@geoffwagner4935 8 месяцев назад
finally got my first website loaded on another device, firewall setting found a great video. that was exciting i tried this a few times before. set a "new inbound rule" with "allow edge traversal" under advanced.
@gnkarn00
@gnkarn00 5 лет назад
thank you for the whole series , i learned a lot from you . i m thinking on gathering data from different sources, add them to a node hosted DB , then be able to serve that data to the Home automation system via the REST sensor API .
@PanosGosfp7
@PanosGosfp7 3 года назад
Great course! It's important to mention that heroku's filesystem is "ephemeral" and only the actual files in the repo persist. Therefore, with every new redeployment, the db files will be gone!!!
@alfredbenefoboahene4
@alfredbenefoboahene4 4 года назад
Coding Train :) , I love the name and I had a wonderful "Training" :D
@Samji3877
@Samji3877 3 года назад
Thank you 'The Coding Train' really helpful video
@satyamohlan1270
@satyamohlan1270 4 года назад
This course was amazing! by the way there is also firebase hosting I think you should cover that too
@VelizFrancia2012
@VelizFrancia2012 5 лет назад
Thanks you so much. I really enjoy the whole series¡¡
@xybarra3702
@xybarra3702 5 лет назад
Love this series, I've been trying to move to server side work for a long time and watching through this whole thing has been great. My only question is why this playlist is unlisted
@TheCodingTrain
@TheCodingTrain 5 лет назад
I'm still working on preparing some of the thumbnails and descriptions so rolling out the videos to public slowly over time.
@gme0ver24
@gme0ver24 5 лет назад
Great content as usually, learned a lot once again.
@akashthoriya
@akashthoriya 4 года назад
You are a great tutor. Thank you from the bottom of my heart. Please make tutorials on - fetch data and post text and images on Facebook, WhatsApp business API. There is zero perfect tutorial for these things. It's hard to understand and I know it'll we easier with you.
@ahmadali-yf6mb
@ahmadali-yf6mb Год назад
I love your energy man !
@chanmyaemaung
@chanmyaemaung 5 лет назад
This tutorial is really awesome and very valuable for me. If possible can you make a one tutorial which is how to make i18n nodejs and express run multilingual language on our website? Like kind of tutorials up above what I said and requested to you, there is no one who never trying to explain making the projects with i18n nodejs on RU-vid properly. I never skip ads on your channel when I learning along with you. I appreciate you. :) I will looking for you coming the next tutorial what I requested.
@FiveElementNinja
@FiveElementNinja 5 лет назад
Great tutorial! It should be mentioned though that Heroku uses an ephemeral filesystem and Heroku dynos are cycled every 24 hours. Since NeDB uses the filesystem for the database, you will lose data every 24 hours. You'd have to switch to MongoDB or something similar. I ran into this problem on my first Heroku project. Hope that helps.
@TheCodingTrain
@TheCodingTrain 5 лет назад
Ahhh, this is such a good point. Thank you for the comment.
@FiveElementNinja
@FiveElementNinja 5 лет назад
@@TheCodingTrain Sure thing! Glad to help!
@bobsmithy3103
@bobsmithy3103 3 года назад
could sqlite be used instead or would we have to use something like mysql and postgresql?
@fictitiousforce9048
@fictitiousforce9048 2 года назад
@@bobsmithy3103 SQLite has the same issue I believe, it would also get wiped every 24 hours
@nimittsingh7094
@nimittsingh7094 4 года назад
Great video man respect ur efforts
@shayanmz
@shayanmz 5 лет назад
Hey, once again great vid! Quick question though, where did you get your whiteboard and what are the dimensions of it - I've been looking for a huge whiteboard i could get for my house!
@subhamshaw1726
@subhamshaw1726 3 года назад
I had put the database key in .env file and locally my app worked but not in Heroku server. So thanks, it was specifically what I was looking for.
@jginvincible1998
@jginvincible1998 3 года назад
This was so helpful! Thank you!
@bulverismo
@bulverismo 4 года назад
thanks, i watched everything, you are amazing!
@hm970826
@hm970826 4 года назад
Love this tutorial!!! and I love ur shirt too where did you get it lol
@Just_An_Idea_For_Consideration
@Just_An_Idea_For_Consideration 2 года назад
Excellent Course! thx
@TheLshallo
@TheLshallo 5 лет назад
This is a really nice series and it really inspired me getting away from php and using a node server.
@bigvlogger2940
@bigvlogger2940 4 года назад
How are you doing with node
@RajanKarmakarRaj
@RajanKarmakarRaj 5 лет назад
Hi Daniel, I am very happy with your video series. I want you to make video for deploying server side code for node. And as well as how to work with real database, google firebase, mongodb atlas and aws with serverless database service. I know I am asking too much. And it will take time. But it will be helpful for us like me who wants to learn programming with javascript. I learnt a lot from your channel. And As I am a entry level programmer these videos are beginner friendly. Thanks a lot to you. Looking forward to see more learning videos into your channel.
@irvinghenriquez8231
@irvinghenriquez8231 3 года назад
wow you saved me SO much time lol thank you!
@raha5184
@raha5184 3 года назад
thank youu. you're the best! 🚂✨
@morphman86
@morphman86 5 лет назад
A note on Git commits: Never, ever commit to a main branch! Your main branches will be Master and possibly Dev, if you have a dev server (perhaps a RasPi in your own home, to test if it works deployed) and maybe, if your customer is big enough, Staging/Test (a third server, sortof like Dev, but your customer can access it, to see changes before they go live). You never want to commit directly to these branches, because that makes it harder to see what changes has been made and when. It also makes it harder to roll back certain changes. Let's say, for example, that your server gets two new features, a brand new REST API handler and a controller to take care of routing. 5 months down the line, you've applied numerous patches since those two features went live, and you notice the routing does not forward to the correct error page, when an error occurs. Instead of 301, you get a generic 500. You update it, push the commit, pull on the server and that's that. 5 more months down the line, you've applied numerous patches and now you notice that the routing was working correctly from the start, but the new version has a potential security risk in it. You want to remove just the Routing update, but keep everything else. How do you do this, when you've committed to Master this whole time? If you instead create a separate local branch for every feature or hotfix, and keep everything to do with that feature or hotfix in that branch. When something like this happens, you merely roll back the branch Feature/Routing one step, reset Master to the commit before you updated Routing, then merge in the now rolled back Feature/Routing and all branches made after. You don't need to push the branches, if you're alone at developing the application. If you're working in a team, it's a good idea to push all branches, so anyone on the team can make these selective rollbacks. But if all commits are directly to Master, you will either need to go back and reference file history, rewrite RoutingController to mirror the earlier version, or branch off from the current Master, roll Master back, then Cherrypick Commit from the new branch and select everything except the Routing update, which could be hours of checking merge conflicts and could potentially involve thousands of files.
@tuminzee
@tuminzee 4 года назад
Thank you for making this video!
@Milchreiz
@Milchreiz 5 лет назад
Very nice tutorial. Great Job Daniel. But one important fact is missing. Heroku dynos removes the local filesystem after lifetime. To store the database you should use a database as a service approach. For example mlab. It would be a nice theme for the next episode. Here from the heroku docu: During the dyno’s lifetime its running processes can use the filesystem as a temporary scratchpad, but no files that are written are visible to processes in any other dyno and any files written will be discarded the moment the dyno is stopped or restarted.
@TheCodingTrain
@TheCodingTrain 5 лет назад
Yes, this is such an important and good point!
@IsfhanAhmed
@IsfhanAhmed 4 года назад
Best Heroku tutorial in the world
@learningacademixca8143
@learningacademixca8143 3 года назад
This was great. Thank you!
@IsaacAsante17
@IsaacAsante17 5 лет назад
Exactly what I need.
@user-or7ji5hv8y
@user-or7ji5hv8y 4 года назад
This was really clear.
@kevinfredericks2335
@kevinfredericks2335 3 года назад
I really wish I had watched this before I went on the heroku rabbit hole. Everything works but heroku has its own ideas about how to do things. It's a good step toward Google Cloud/AWS where the configuration is nearly limitless.
@arslanahmed1311
@arslanahmed1311 Год назад
Best explanation ever.
@arttledsoulfindspeace
@arttledsoulfindspeace 5 лет назад
I literally learn about this in class yesterday 😂 we used fire base instead
@josephjoy8390
@josephjoy8390 3 года назад
thanks man helped me alot
@ManjunathManja1227
@ManjunathManja1227 4 года назад
Thanks a ton, Dan!
@akbara5043
@akbara5043 5 лет назад
I have a question about the video if you don't mind: How are you zooming in and out while going live with wirecast without zooming in your camera feed? Fist I thought it was post production effect but you are using mac itself to zoom in zoom out which is usually can't be captured by the tool. Your answer would be much appreciated.
@amrantomer8005
@amrantomer8005 4 года назад
I'v just finished watching (and coding) throw the whole series. I think I'v learned allot. Just a quick question: Where can I learn more deeply about how internet works? I mean, the whole HTTP, GET and POST isn't really clear to me. I feel like the fetch() API makes things too easy.. Keep up the great content.
@healthandhappiness9550
@healthandhappiness9550 5 лет назад
I could not watch it all, I watched it here and there. I hope to spend more time where I could try to understand.
@cuchitp
@cuchitp 4 года назад
Thank you Dan for another great series. Perhaps this question has been answered already, but how is responsive design handle with P5? The Canvas is fixed length which seems to contradictive adaptive behaviours to different devices. Thank you once again.
@kimeg7294
@kimeg7294 4 года назад
You can dynamically control canvas dimensions, but it depends on what you are trying to accomplish specifically.
@MikeSamways
@MikeSamways 5 лет назад
Top series!!
@KevinMadalossoVeiga
@KevinMadalossoVeiga 4 года назад
great video!!!
Далее
Heroku Is Dead, Here's What I Recommend
11:59
Просмотров 249 тыс.
Неожиданно?
00:25
Просмотров 103 тыс.
Какую одежду я не ношу? 😱
00:13
Просмотров 402 тыс.
Me: Don't cross there's cars coming
00:16
Просмотров 4,3 млн
1.1: fetch() - Working With Data & APIs in JavaScript
15:39
1.4: JSON - Working with Data and APIs in JavaScript
16:22
The Async Await Episode I Promised
12:04
Просмотров 1,1 млн
What is an API and how do you design it? 🗒️✅
15:26
Неожиданно?
00:25
Просмотров 103 тыс.