/compose-io-create-db

Example implementation (Node) of MongoDB database creation using Compose.io API

Primary LanguageJavaScript

An example how to use Compose.io API using NodeJS

The source code is related to this blog post.

Usage

Create file called conf.json and fill it with your personal data.

{
    "accountName": "",
    "deploymentName": "",
    "databaseName": "",
    "token": "",
    "apiVersion": "2014-06"
}

After that you should regular NodeJS magic

npm install

node index.js