- Platforms >
Modulus is a premier Node.js and MongoDB hosting platform that provides a complete technology stack for application developers. This includes custom SSL, WebSockets, statistics, and more.
MongoDB is available as a first-class solution on the Modulus platform. The platform provides easy managment tools to create databases, create and update users, and observe database performance in realtime.
Modulus supports replica sets on dedicated plans. This includes the ablity for Meteor users to have access to the oplog. To find out more about our dedicated plans, contact sales.
By providing a place to run both Node.js applications and MongoDB databases Modulus gives you a single place to handle all your platform needs. This means faster connections between your applications and databases, and fewer headaches managing them. This doesn’t mean that you have to run your application on Modulus; you can choose any application platform you’d like.
If you need a dedicated environment, Modulus provides the answer with Curvature. You can get everything mentioned above with the flexibility to choose where you run your application. It could be on-premises, in a dedicated cloud, or a hybrid of the two.
Modulus Account Setup¶
If you don’t have an account yet, go ahead and create one.
Next, install the CLI (requires Node.js & npm).
npm install -g modulus
Now make sure you’re logged in.
Once logged in you’re ready to go.
Create a Database¶
It’s very simple to create a database on Modulus.
modulus mongo create "Database Name" Welcome to Modulus You are logged in as spiderman Creating MongoDB database Database Name [√] New MongoDB database Database Name created. Database available at: noveda.modulusmongo.net:27017/xxxxxxx
Once you’ve created a database, you’ll need to create a user.
Welcome to Modulus You are logged in as spiderman [?] Are you sure you want to use database Database Name? (yes) Selected MongoDB database Database Name. [?] Enter username: johnny [?] Enter password: five [?] Read only permissions? (yes) no [✓] New MongoDB database user johnny created.
The full MongoDB URI corresponding to the above steps is:
Databases can also be created through the web interface. Navigate to your User dashboard and select the Databases tab on the left.
To create a new database click the “Create Database” button.
On this dialog enter your desired label for the database. This name is simply a convenience label and is not the actual name of the database within MongoDB. Actual database names are created automatically by Modulus.
You can also create a database user using the web interface. You must create a user in order to access your database.
Once complete, the popup will change with information about your newly-created database.
The MongoDB URI can be used to connect to your database from your
application. The Mongo Console is the command used to connect to your
instance using the
mongo shell. This information can also
be retrieved at any time from the database dashboard.