-
Book Overview & Buying
-
Table Of Contents
Flask By Example
By :
Similarly to what we discussed with MySQL, MongoDB comes with a simple shell. This is ideal to run quick, one-off commands and get used to the syntax. Let's run through the basic CRUD operations to get familiar with how MongoDB works.
As in our previous project, once we introduce MongoDB, we'll move to using it only through Python code; however, to start out, we'll write commands directly in the shell. This means there will be some slight differences in syntax, but as nearly everything is JSON based, these differences shouldn't be a problem.
To start the MongoDB shell, run the following command on your VPS:
mongo
This will start the interactive MongoDB shell as in the following image, which you can exit at any time by pressing Ctrl + C or by typing exit into the shell and pressing Enter.

As with MySQL, the top-level concept in MongoDB is a database. By default, this will connect to a database named test....
Change the font size
Change margin width
Change background colour