AdminMongo
adminMongo is a web-based graphical interface written in
Node.js, used for managing
MongoDB databases.
The following description outlines the basic steps required to run this interface with Passenger, including setting an authorization password for accessing the panel.
Initial Configuration¶
To run adminMongo, you must first ensure the correct configuration of the domain (or subdomain). Before proceeding, make sure that:
- The domain is correctly added and configured in our DNS system.
- A Website has been added, configured as type Node.js, with the Node.js executable in version 4.X.
Installation¶
Log in to MyDevil via SSH.
Then go to the directory of the previously created site:
/usr/home/
login
/domains/
domain
/
, where domain (applies to the entire description) should be replaced with the configured domain or subdomain. Then:
Run the following commands:
npm i admin-mongo
rm -R public_nodejs
ln -s node_modules/admin-mongo/ public_nodejs
Open the site address in your browser to launch the application.
Create symbolic links:
ln -s ~/domains/domain/node_modules/bootstrap/dist public_nodejs/public/bootstrap
ln -s ~/domains/domain/node_modules/jquery/dist public_nodejs/public/jquery
ln -s ~/domains/domain/node_modules/font-awesome public_nodejs/public/font-awesome
Set the access password for the panel by editing the file
public_nodejs/config/app.json
with your favorite text editor
(e.g., vi, ee, nano, mcedit):
nano public_nodejs/config/app.json
New contents of the file:
{
"app": {
"password": "supersecretpassword"
}
}
where supersecretpassword is the new access password for the panel.