# MongoDB setup

### MongoDB SETUP

This App uses Mongo DB as a backed to read and save data for Menu, Order. In this section, you will find all the steps required for the dashboard connection with your App.

First, you should create a free Mongo DB account and create a new Cluster there. You can visit <https://www.mongodb.com/cloud/atlas> and signup if you don't have an account earlier, and if you have an account, you can log in by giving your credentials &#x20;

![](/files/-MEXNuls1-XQdCQ2UMpI)

Once you log in it navigate to the page where you can select the free version as mentioned in the below screenshot

![](/files/-MEXO1bvTdypdEUZuIjw)

Next click on create cluster as mentioned in the screenshot&#x20;

![](/files/-MEXO8-yeld0uzuorwL_)

Select free version and then click on create cluster as mentioned in the below screenshot.

![](/files/-MEXODYnKtZq06-RHqIN)

Once the cluster gets created&#x20;

![](/files/-MEXOJSxLi1Kf2p-Lwgq)

Once the cluster gets created click on Database on the left-hand side, it navigates to the window where you can create user mentions the name and create a password then click on Add user as mentioned in the screenshot below

![](/files/-MEXOPUuyYcDpKMY-awo)

Once you click on add user so that user  gets created successfully&#x20;

Then go to cluster and connect to the group and navigates to the window where you need to select connect your application as displayed in the below screenshot.

![](/files/-MEXOTy8IjM7W4YfO4Xs)

### Then it navigates to the window where you can copy the string copy it.

![](/files/-MEXOZIC-a1PryewQizC)

MONGO\_DB\_URL as displayed in the screenshot above. Their username and password you can use that setup for this MongoDB database.

Then navigate to your mongo DB cluster there on the left-hand side you can find Network Access there click on edit >Add current IP address >we get the IP address as displayed in the screenshot below but after this dashboard can access for your machine.&#x20;

You can whitelist to your Server IP or allow access from all IP on your wish.

![](/files/-MEXOij6RvrSW4W_U8vo)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionicfirebaseapp.com/flutter-grocery-app-pro/mongodb-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
