# 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](https://brandonescamilla.gitbook.io/flight-computer-with-xdk/backend/untitled) (in index.js line 5)

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