Spin up a Free Hosted MongoDB Database in 5 Minutes
Tags: database, nocode, tutorial, programming
Published: 2024-03-10 10:22:01

Are you looking to set up a MongoDB database quickly and effortlessly for your development or hobby projects? Look no further! In this guide, we'll walk you through the simple steps to create and host a MongoDB database in just a few minutes using [Appdoh](https://www.appdoh.com). 

Whether you're testing micro apps or need a temporary database for your projects, this solution is perfect for you. The best part? All these can be done without writing a single line of code!

## Getting Started
1. **Navigate to [Appdoh](https://www.appdoh.com)**: If you haven't already, [sign up](https://www.appdoh.com/register) for an account on Appdoh. Better yet, simply [sign in here](https://www.appdoh.com/sign-in) with your Google or Facebook account.
2. **Access the Appdoh Store**: Once logged in, head to the Appdoh Store from the top menu bar. ![The menu bar](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zhfi7y7lr4qp043s7d0t.png)
3. **Configure Your Application**: Provide a name for your application and select the workspace where you want it to reside.
![Configure your application](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/65axmfsxjz2q6xcavxkx.png)
4. **Deploy Your Application**: Once your application is created, it's ready to go. Simply click "Deploy" and allow a few minutes for your MongoDB instance to spin up. 
![Your application is created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w5u8dgwm2mnqzum4ktwk.png)
5. **Ready to go**: Voila! Your service is now primed and ready for action.
![Status is ready](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l4z4kpvg836ktderd69f.png)

## Verify the Connection to Your Database
With your MongoDB database up and running, it's time to ensure your application can connect seamlessly.

Feel free to utilize any database GUI tool of your choice to connect to your database. Personally, I highly recommend MongoDB Compass for its user-friendly interface and powerful features. It's available for Mac, Windows and Ubuntu. You can download it from the [official MongoDB website](https://www.mongodb.com/try/download/compass).

1. **Set Up a New Connection:** Open MongoDB Compass and click on "New Connection".
2. **Copy Hostname and Port:** From the Overview section of Appdoh, copy the Hostname and Port and paste them into MongoDB Compass.
![Hostname and Port name available in Appdoh](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xrcm7evphfb84xsyppw9.png)
3. **Authenticate**: Go to Authentication in MongoDB Compass and select Username/Password. Retrieve the credentials from the Variables section of Appdoh and paste them into MongoDB Compass.
![Select Username/Password from MongoDB Compass](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jgcirganebrxqrra7nex.png)
5. **Connect**: Once the credentials are entered, click "Connect". You should now have access to your MongoDB database. 
![Enter your credentials and click Connect](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0678g32mxwqq2x3jczxk.png)

# Summary
Setting up a MongoDB database has never been easier! By following these simple steps, you can create a free instance of MongoDB in just a few minutes using [Appdoh](https://www.appdoh.com). Whether you're a developer testing out new applications or working on hobby projects, this hassle-free solution provides you with the flexibility and convenience you need.