DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Margaret W.N
Margaret W.N

Posted on • Updated on

Day 40: Deployed Back End to Heroku

I deployed the the Back End project to Heroku successfully or rather almost successfully. I followed through the Getting Started on Heroku with Node.js article. It is straight forward and easy to set up, when you don't bump into errors.

Onto the successful bit: Running the app locally.
Command used:

heroku local web
Enter fullscreen mode Exit fullscreen mode

I made a request to http://localhost:4000/products on the browser, and got back my saved products.
Alt Text
I also made requests to a couple of endpoints. Here is the Response on terminal Response on terminal

Then there is the unsuccessful bit of it. Opening the app on a site. I'm not sure what output to expect since it's only a Back End, but from the output below something is amiss.
Command used:

heroku open
Enter fullscreen mode Exit fullscreen mode

Output
Application Error Message
Heroku logs
Alt Text
I copied and pasted the logs on google. But google could not comprehend the search.
Fixed on day 44

Day 40 is a Done Deal

Top comments (0)

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: