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.
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.
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.
The public URL for the hosted project,
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,
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.