MongoDB

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

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

Terminal 1
$ mongod
Terminal 2
$ mongo

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)

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

after that you will be able to put your database name here ---> Backend (in index.js line 5)

I suggest you to see AdminMongo if you want a prettier way to see your database in realtime.

Last updated