I don't know how to deploy this Node.js website

I made a website that uses MongoDB and Node.js, and Im not sure how and where I should deploy it.
9 Replies
ghostmonkey
ghostmonkey5mo ago
if you are looking for a free option, I am not sure any are available, but maybe someone else can chime in. But otherwise, if you want to self host, a VPS is a good option (unless mongodb is like sqlite and doesn't need a backend, in which case, try vercel or cloudflare, or github for free options)
DBatman35611
DBatman35611OP5mo ago
Its fine if its not free, im just confused about the setup required and just how to get everything running. Also if im using AWS then how will I put my custom domain. I needed the node.js for mongodb
ghostmonkey
ghostmonkey5mo ago
using a custom domain is easy, i'm sure there is a place in the amazon control panel to specify that i don't use aws, so i can't say what is the best method for that my setup is self hosted using contabo or hetzner for the VPS provider, and coolify or bare metal for the serving if you setup something like coolify, you can just install docker images of anything like mongo, postgres, or any cms etc and then setup your front end and link them and it will work fine AWS probably has some sort of hosting for front end option you could maybe just use that and avoid self hosting
DBatman35611
DBatman35611OP5mo ago
Well its for a client and Ill be using a Cloud provider like google or amazon
ghostmonkey
ghostmonkey5mo ago
googling how to use mongodb on aws returns pretty specific instructions from the mongodb docs probably a good place to start
ghostmonkey
ghostmonkey5mo ago
Integrating MongoDB with AWS services - AWS Prescriptive Guidance
How to integrate MongoDB Atlas with AWS services to configure connections, implement SAML authentication, deliver and analyze data, and run code without servers.
ghostmonkey
ghostmonkey5mo ago
first 2 returns are where I would start
DBatman35611
DBatman35611OP5mo ago
Ill look at google or other providers too because in amazon theres something about the Js file being named as app.js in the main and the start, but in my case the main js files is different from the start file, so I dont know how ill do the app.js renaming stuff
Want results from more Discord servers?
Add your server