MongoDB is quite reliable in my opinion. I highly recommend using MongoDB. Though, using MongoDB with free tier and a game over 1000 players playing is probably not a good idea. I recommend spending some money at least. MongoDB is also used for scripting discord bots!
Thanks for this. I’ve just transitioned from glitch to Realm. It seems to be harder to use than mongoose but it’s nice having it all in one place.
I have used MongoDB before for other, personal projects. However, I think it’s very unnecessary to save data to MongoDB for Roblox Players when you can do the same thing with the built-in DSS.
MongoDB has its own benefits, its highly scaleable & it also provides alot of other features (MongoDB Charts etc), which can be used at times when needed to visualize data sets.
Its also always fun to try out new things
Other than that most people are good with the Roblox Datastores.
At the start of the setup on Glitch, I downloaded the source on the terminal and have pasted the code in server.js
but I’m getting an error. How do I fix this?
You need to install the express module.
iirc, when you click your package.json file, there should be a button called “Add Package”.
I did that but still getting the error.
Hello, I am not using Glitch for this hosting, but I am using my own host, though in your tutorial it shows to fill out username and password for authorization, and I don’t have that because I do not use glitch.
What would I put as my username and password for the authorization?
my mongodb is self hosted by a hosting company.
Have you fixed this? I’m using DigitalOcean for hosting, and I can only send HTTP requests to mongodb on localhost, but it doesn’t work on my remote domain’s website.
EDIT: Nevermind I figured it out
I have not, I can’t even get past the this page, it starts up and then goes down and gives me this error. It’s impossible for me because it will shutdown the server.
connection error: MongoServerError: bad auth : Authentication failed.
Never mind I fixed it was just a minor issue
Be prepared to pay for storage costs, and networking! Networking will come back to bite you if you do any kind of large scale data hosting.
Hey when I try previewing in the preview pane, it is all just blank and I don’t see the Hi, This Is A Tutorial Api . . . text
Instead it shows a 504 Gateway Timeout
I am also getting an error that it cannot find the express module
did you run the npm install mongoose express-basic-auth
command inside the terminal?
if not try doing so and that should fix it.
This error means there was an issue on your server, like the code erroring etc. Try installing express and that SHOULD fix that error too.
I tried that multiple times but I’m still getting the error.
do you get any error inside the terminal when u install it?
Nope
If you want, I can screenshare on Discord to help resolve the issue faster
Aidan#5555
I sadly dont have a discord account. But i’ll make one real quick
At least using Mongo Db would have more uptime than the current Roblox servers.