

There are many hosting websites which provide free PHP and MySQL hosting for testing our projects. It is somewhat hard to find a free service to host our Node.js and MongoDB projects. After searching for some time found two services which help to host our Node.js and MongoDB projects for free.
For Node.js Hosting: Heroku
For MongoDB Hosting: mLab
Free service does have its limitations. Heroku sleeps our instance after 30 minutes of inactivity. So if a request is made to our instance during sleep, it takes 5-10 seconds to respond.
Heroku has an awesome step by step process to deploy a Node.js App.
https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction
Similarly, mLab provides 0.5 GB storage in a shared instance.
I have tried hosting Node Login Registration project with MongoDB in mLab and Node.js in Heroku.
https://github.com/Learn2Crack/android-login-registration-authentication-server
The public URL for the hosted project,
https://node-login-learn2crack.herokuapp.com/api/v1
Make sure to use the correct MongoDB config URL in your Node.js Code after you create your Database in mLab.
Here my MongoDB url looks similar to,
mongoose.connect('mongodb://username:password@ds151461.mlab.com:51461/node-login');
Happy hosting!
Disclaimer: This is not a sponsored post from Heroku or mLab.
Note: If you are hosting your production app upgrade to paid plans for maximum availability and performance.