MongoDB is a NoSQL database that Spoo.me uses to store URLs, analytics data, and user information. You can either set up a MongoDB server on your own infrastructure or use a cloud service like MongoDB Atlas.
We strongly recommend using MongoDB Atlas as it offers a generous free tier, automatic backups, and professional management without the complexity of self-hosting.
MongoDB Atlas provides a free M0 tier that’s perfect for most Spoo.me deployments and can handle thousands of URLs without any cost.
1
Create MongoDB Atlas Account
Navigate to MongoDB Atlas and sign up for a free account.
Verify your email address when prompted to activate your account.
2
Create a New Cluster
After logging in, you’ll see the Atlas dashboard.
Click on “Build a Database” or “Create” button
Choose the “M0 Sandbox” option (this is the free tier)
Select your preferred cloud provider (AWS is recommended)
Choose a region closest to your target audience for better performance
Give your cluster a memorable name (e.g., “spoo-me-cluster”)
Click “Create Deployment”
The cluster creation process typically takes 3-5 minutes to complete.
3
Create Database User
Once your cluster is ready, you’ll see a “Connect to Cluster” dialog.
In the “Username” field, enter a username (e.g., “spoo-admin”)
Click “Autogenerate Secure Password” or create your own strong password
Important: Copy and save the password immediately - you won’t see it again
Click “Create Database User”
Store your username and password securely. You’ll need these credentials for your connection string.
4
Configure Network Access
Set up IP address access for your deployment.
Click “Choose a connection method”
Select “Drivers”
In the IP Access List, click “Add a Different IP Address”
Click “Allow access from anywhere” (adds 0.0.0.0/0)
Click “Confirm”
While “Allow access from anywhere” is convenient for development, consider restricting IP access to your server’s IP address in production for better security.
5
Get Connection String
Now you’ll get your MongoDB connection string.
Choose “Node.js” as your driver
Copy the connection string - it should look like this: