# MongoDB

Basically what you need is already in mongoDB webpage so I suggest you to use this useful tutorial that its there.&#x20;

{% hint style="info" %}

* MongoDB [install instructions here](https://docs.mongodb.com/manual/administration/install-community/).
  {% endhint %}

But when you have already mongoDB installed on your pc, you just need to open two terminals, and type:

{% code title="Terminal 1" %}

```bash
$ mongod
```

{% endcode %}

{% code title="Terminal 2" %}

```bash
$ mongo

```

{% endcode %}

in terminal 2 you are going to be able to put some bash code so you are going to put the next command "use XDK\_db"  in order to create a database. (When you use $ mongo you are going to see what is below the > use XDK\_db)

{% code title="Create database" %}

```
The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.

To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---

> use XDK_db

```

{% endcode %}

after that you will be able to put your database name here ---> [Backend](/flight-computer-with-xdk/backend/untitled.md) (in index.js line 5)

{% hint style="info" %}
I suggest you to see [AdminMongo](/flight-computer-with-xdk/database/adminmongo.md) if you want a prettier way to see your database in realtime.
{% endhint %}


---

# 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://brandonescamilla.gitbook.io/flight-computer-with-xdk/database/mongodb.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.
