I'm using nodejs as a backend, an mongoDB as a database.
I have free atlas on mongodb and a free dyno on heroku for developing.
I'll finish developig my App soon and I'll have to buy production plans of both heroku and mongoDB so,
MY QUESTION is, is there a mongoDB that I can install on heroku and use it along with my heroku app?? or do I have to buy an Atlas and connect it to heroku?
Related
When i create a localhost nodejs CRUD API i am able to make post request.But when i deployed it in cpanel using nodejs software "Incomplete response received from application"
Please share more information as my preliminary guess is that if you are using MongoDB then you cant run it on shared hosting you should use some other DB like Atlas MongoDB or Mlab
I recommend you host it on Heroku as its also free
Deploy APP to Heroku
Use Any thirParty mongoDB service
Test your CRUD API
My application has a NodeJS server, ReactJS client and database MongoDB compass. I need to deploy this to Heroku. Is there any way to do that?
i am making NodeJS app hosted on heroku and using MongoDB atlas as a backend.When i am sending POST request to app via POSTMAN it is showing:
Error: 503 service unavailable
In my opinion node app is failed to connect with MongoDB atlas cluster.If so then how can i connect it with MongoDB.
THANKS
See Connecting Heroku App to Atlas MongoDB Cloud service, you need to either connect via SSL or whitelist the relevant Heroku IP address ranges for your app.
I created and deployed a MERN web app on DigitalOcean which works fine using a Mongo database hosted on mlab.com, but now I want to host the database on DigitalOcean and I'm having difficulties with this...
I followed this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 but now I don't know how to connect my node.js server to this database.
Does the connection to 127.0.0.1:27017/mydbname should work on production?
Any solution or advice would help me a lot.
Currently I am deploying my app on a Heroku server. The app is written on Node.js and uses MongoDB as a database source. I'd like to know how I can upload my own database on Heroku without having to use any add-ons or databases provided by Heroku.