Mongo Express¶
Mongo Express is a web-based MongoDB admin interface.
The Mongo Express client must be connected to a MongoDB server running inside another application deployed on UCloud.
Getting started¶
As a working example, consider a MongoDB server which runs in the UCloud Terminal Ubuntu app. The program is installed by
$ sudo apt-get update && sudo apt-get install -y mongodb
and the server daemon is launched with command
$ mkdir /work/data
$ mongod --dbpath /work/data --bind_ip_all --logpath /work/mongod.log &
This creates two default databases, admin
and local
, which are stored in the working directory path: /work/data
. Notice that the option --bind_ip_all
is used here to allow external applications to connect to the server IP address.
Now that the MongoDB server is up and running, the user should deploy a new instance of Mongo Express by connecting it to this Terminal app job, as discussed here. All the other optional parameters can be set to the default values in this case.
After the job is submitted, the web interface looks like in the image below.

From the web interface the user can create a new database, add collections, upload documents, and run queries.
For more information check the official documentation of MongoDB.
Contents