Deploy NodeJS and Express API On Heroku

Deploy NodeJS and Express API On Heroku

Arslan

4 года назад

85,204 Просмотров

Deploy NodeJS and Express API On Heroku. In this tutorial you will learn how to host your NodeJS API on Heroku for free. If you have any questions dont hesitate to leave them down below! :)

Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli
Heroku App.json Schema: https://devcenter.heroku.com/articles/app-json-schema

Meme of the day: https://www.youtube.com/watch?v=74sV7QXXw9A&list=LL&index=204&ab_channel=bluch

Here are some other videos you should check out!
https://youtu.be/SyaJSKklH0U
https://youtu.be/JcHLxzrsRS4
https://youtu.be/__l5Y1FDtkg

Please don't forget Like, Comment and Subscribe if you're new! Support the channel 😁: https://www.paypal.com/donate/?business=928HZ66A6T728

Тэги:

#node #nodejs #js #javascript #js_frameworks #heroku #deploy_on_heroku #arslan #deploy_heroku_app_using_nodejs #express #express_js
Ссылки и html тэги не поддерживаются


Комментарии:

Professional P Productions
Professional P Productions - 16.12.2022 20:19

Thank you. Please don't post misinformation on the internet though, that is terrible for society. Please do better when informing. Michael Jordan is the goat.

Again. Thanks for the video. It helped a lot!

Ответить
Devendra Vaidya
Devendra Vaidya - 19.11.2022 18:51

Thank you so much !!

Ответить
Opeoluwa Omiwade
Opeoluwa Omiwade - 10.11.2022 05:02

I get an application error when I try running the heroku app. do you know why?

Ответить
Anon
Anon - 16.09.2022 16:18

Hi arsalan, heroku just announced that they are ending their free tier plans and this is bad news now all of us have to move our project somewhere else please make a video on free tier alternative for Heroku

Ответить
random
random - 14.09.2022 16:45

i am getting method not allowed what to do?

Ответить
Rushabh Shah
Rushabh Shah - 25.08.2022 12:41

Thank you so much, this was helpful!

Ответить
Bjørn Pollen
Bjørn Pollen - 12.08.2022 21:40

I love kevin. He is so much better than the other players on durant!

Ответить
Gowtham Srinivasan
Gowtham Srinivasan - 04.08.2022 17:23

But, What if someone who knows this heroku link? Does he access the data?

Ответить
DAVEWORLD
DAVEWORLD - 14.07.2022 05:43

Thanks so much Arslan my main bug was from package.json, i did not include the ""start": "node app.js" in the scripts object now everything works just fine for me.

Ответить
saranya vinjarapu
saranya vinjarapu - 11.06.2022 09:49

I created a node js express API and one of the endpoints takes a lot of time to get response data as it awaits google's lighthouse data hence Heroku is displaying "H12 request timeout" error. I think Heroku's request time out is just 30 seconds and as my API endpoint is taking more than 30 seconds, it's hanging up. Is there a way to deal with such issues?

Ответить
Olanitori Tobi
Olanitori Tobi - 08.06.2022 15:39

Hi! Thanks for the video! i have my api deployed with heroku but cant access the routes. i keep getting an application error and my page could not be served. on my local host i access these routes just fine!. Do you know what might be wrong? i'm using mongoDb as my database

Ответить
Soul King
Soul King - 12.05.2022 07:41

Thanks Bro very Much .May god Bless u . BTW in Prockfile i uses npm start

Ответить
Ja22i
Ja22i - 27.04.2022 09:08

This is one of the best videos I've seen in a while. I found it easy to follow along.

Ответить
Gri M
Gri M - 27.04.2022 01:56

Buying court-side tickets to team Durant, fo sho

Ответить
Vaishnavi Paliya
Vaishnavi Paliya - 19.04.2022 06:21

I did the same but now don't know how but it's crashed nothing is working now eg.react installation or anything else. Please help if someone know solutions for this.

Ответить
Qaliex Qaliex
Qaliex Qaliex - 09.01.2022 00:27

Made my own proxy :=) Great video

Ответить
Budha Tech
Budha Tech - 05.01.2022 10:13

Thank you. It helped.

Ответить
B An
B An - 31.12.2021 19:34

I can get an api up on heroku, but when I try to fetch from it I get error messages. Is there any tutorial where we get to see how to properly fetch from heroku as well?

Ответить
Ankit Sharma
Ankit Sharma - 20.12.2021 14:36

thank you so so so so much. you have no idea how frustrated I was.

Ответить
Benny Chew
Benny Chew - 11.12.2021 23:55

Cool and handy video, thanks! Nice to see the NBA example, I'm a NBA fan!

Ответить
Harsha Abeyvickrama
Harsha Abeyvickrama - 26.11.2021 20:20

Thank you

Ответить
Sagar Worriors
Sagar Worriors - 13.11.2021 08:38

not working

Ответить
Madhav Anand
Madhav Anand - 31.10.2021 06:46

This is the fastest and perfect explanation on how to deploy on heroku

Ответить
Himanshu Sharma
Himanshu Sharma - 23.10.2021 19:29

Thank you, Sir

Ответить
Rustam Apaev
Rustam Apaev - 22.10.2021 10:16

Thank you.
Actually most part of the video is about creating the simplest API on express.js from a JSON file 😀
and only last 20 seconds is about deploying on Heroku 😛

Ответить
Ellis Armeanca
Ellis Armeanca - 14.10.2021 19:21

im getting this error: failed to push some refs to 'heroku'

Ответить
TheNamesJT
TheNamesJT - 12.09.2021 10:30

can you make the same video but deploying on vercel?

Ответить
NAS Lyazghi
NAS Lyazghi - 08.09.2021 23:57

You are a legend!! Thank you very much!

Ответить
Travelogue
Travelogue - 07.09.2021 12:21

how about "post" method? "GET" is working but "POST" is not working for me from heroku... "POST" is working from postman

Ответить
Allan Ayford
Allan Ayford - 03.09.2021 04:49

Hi, Thanks for the video. Quick Question: What is the JSON formatted you use?

Ответить
AKASH
AKASH - 25.08.2021 11:27

thanks brother for your time ....

Ответить
Wilfred Almeida
Wilfred Almeida - 05.08.2021 16:03

As of August 2021, here are steps I followed:

In your project folder do:
1. git init
2. git add .
3. git commit -m "first commit"
4. heroku create myapi
5. git push heroku master

I followed the video and got git errors so I did it in this order and it worked.

Ответить
Alfirman Ejha Pahlepi
Alfirman Ejha Pahlepi - 27.07.2021 19:41

you dont need git ignore ?

Ответить
lamargtv
lamargtv - 06.07.2021 03:53

i got cors error when trying to fetch api, how to solve it?

Ответить
Lé
- 03.07.2021 06:46

super helpful g, I needed to do `heroku git:remote -a [your app name on heroku]` before `git push heroku master` though

Ответить
saurabh jilgilwar
saurabh jilgilwar - 30.06.2021 20:47

Thanks bro.. Afterall i succeeded to deploy server 👐

Ответить
Zeno Modiff
Zeno Modiff - 23.06.2021 13:28

How can I get each array
Like if we have multiple names ur printing the whole json data right
I need to get one by one when webpage refresh

Ответить
Adnan Aleemuddin
Adnan Aleemuddin - 09.06.2021 00:17

bro im done with life... it isn't getting deployed. It has H10 503 ...error .god knows what it is

Ответить
nope kowalski
nope kowalski - 05.06.2021 01:04

Thanks a lot!

Ответить
GenshinNoob
GenshinNoob - 01.06.2021 13:18

watched so many long tutorials and this short and simple tutorial is working
Thank You....

Ответить
Pratik Mane
Pratik Mane - 15.05.2021 13:56

Can i POST data into that

Ответить
mkmalik
mkmalik - 12.05.2021 05:04

hey man,
thank you so much
you saved me from a whole nightmare situation
thanks ♥️

Ответить
Panth Patel
Panth Patel - 09.05.2021 20:43

when I try git push heroku master, it say that heroku isn't a repoitory

Ответить
UnknownLord
UnknownLord - 08.05.2021 17:14

idk who's gonna see this but this is wut the current issue is
i have an express api that fetches data through scraping then when hitting the '/' it returns the data
1. it works locally and returns data
2. it doesn't return me any data when deployed to heroku, just an empty array

Ответить
nerdiloo
nerdiloo - 27.04.2021 01:35

Cool but please note to use .gitIgnore file . The .gitignore file is a text file that tells Git which files or folders to ignore in a project. In this case all those files in the node_modules folders didn't have to be uploaded, and devs might wonder (in the real world) why they're hit with high bills.

Ответить
Gabriel
Gabriel - 25.04.2021 15:09

Pretty helpful, thanks!

Ответить
Nguyen Pham
Nguyen Pham - 25.04.2021 00:03

Very nice. Thank you

Ответить