Skip to content

Instantly share code, notes, and snippets.

@benzenwen
Created November 8, 2012 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benzenwen/4042395 to your computer and use it in GitHub Desktop.
Save benzenwen/4042395 to your computer and use it in GitHub Desktop.
MongoLab Joyent-hosted MongoDB

MongoLab Joyent-hosted MongoDB

This is the 16th in series of posts leading up Node.js Knockout, and covers provisioning MongoLab for use in your node app.

MongoLab provides MongoDB-as-a-Service on the Joyent Cloud (and on Cloud providers) for the lowest latency between your Nodejitsu app and MongoDB. 500MB databases are available for free. In a recent test, ping latency averaged under 800 microseconds between our MongoLab Joyent servers and a hosted jit.su server. We have a web GUI for managing, searching, and editing documents in MongoDB. We also provide an authenticated REST API if you need that.

tl;dr

1. Visit http://mongolab.com and sign in / create a free account
2. Click ""Create new" in the Databases section 
3. Select JoyentCloud as the provider, with the Free plan (500 MB), us-east-1 datacenter
4. Populate the database name and at the bottom, the username and password fields, then click "Create database"
5. In the database list, click on the new database to get to the detail page
6. Connection string is at the top of the page and should look like 'ds??????.mongolab.com:??????/databasename'.  Username and password are as you entered them
7. Connect and enjoy.  Contact support@mongolab.com with any questions

Create a database

  1. Visit http://mongolab.com and create an account or sign in if you have one already.
  2. Click "Create new" in the Databases section. Alternatively, you can clone an existing database if it's accessible on the Internet and you have a username and password for it.

Create

Select JoyentCloud, us-east-1

  1. Select JoyentCloud as the provider, with the Free plan (0.5 GB), us-east-1 datacenter.
  2. Populate the database name and at the bottom, the username and password fields, then click "Create database".

Database Form

Get your connection string

  1. In the database list, click on the new database to get to the detail page.
  2. Connection string is at the top of the page and should look like 'ds??????.mongolab.com:??????/databasename'. Username and password are as you entered them.
  3. Connect and enjoy. Contact support@mongolab.com with any questions. Thanks for using our service. After your database is populated with at least one collection, you can run and save queries, and edit documents directly in our UI. That makes development with MongoDB even easier.

Database Detail

More MongoDB nodeknockout tutorials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment