December 2017
Intermediate to advanced
296 pages
5h 56m
English
We can set up MongoDB on our server as a stand-alone installation. This way, the DB is running on the server and the data is persisted there.
Depending on your OS, you can follow the instructions provided at https://docs.mongodb.com/manual/installation/ to set up the database.
Once you have installed the DB, to test whether everything is working fine, you can open a new terminal and start the Mongo daemon by running the following:
mongod
You should see something similar to the following:

I am running the database on the default port 27017.
Now we will interact with the database using the mongo shell. Open a new command ...
Read now
Unlock full access