Issue: Heroku as webhost and uploading mongo

Issue: Heroku as webhost and uploading mongo
0

#1

So I am very happy to finally got the hang of this backend business.

Instead of simply outputting a JSON, I decided to add a very simple front-end UI as shown below.

That being said, I am hard time uploading to heroku, especially dealing with mongo database, as well as how to correctly append the right url link to direct it.

here is what my app.js looks like

where the web host is currently reside in localhost:3000.

How do I change it to be applicable with heroku as webhost?


#2

I used mLab to host my Mongo database and linked that up to Heroku.

This wiki entry gives a solid overview of getting started with Heroku and mLab: