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
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)
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
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
Well its for a client and Ill be using a Cloud provider like google or amazon
googling how to use mongodb on aws
returns pretty specific instructions from the mongodb docs
probably a good place to start
MongoDB
How To Run MongoDB Atlas On AWS Cloud
Learn how to run a MongoDB Atlas instance on the AWS cloud.
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.
first 2 returns are where I would start
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