Create a Cloudant database
- Log in to IBM Bluemix.
- Click Catalog in the upper right.
- Click Data & Analytics.
- Click Cloudant NoSQL DB.
- Click Create.
- On the Cloudant page, click Launch.
- Click DATABASES.
- Click Create Database.
- For the name of the new databases, enter
weatherwatchers
. Then, click Create.
- Click the X to dismiss the success notification banner.
- Click API to view the REST API URL to access this database. Make a note of this API.
- Click the + next to All Documents. Click New Doc.
- Enter a sample
weatherwatcher
report based on the example shown here. Click Create Document.
{"location":[34, 45],
"date":"2016-09-22T07:00:00+0500",
"observed":"report",
"watcher":{"name":"Bob", "email":"[email protected]", "city":"Here"},
"forecast":"narrative",
"fcst_min_temp":45,
"fcst_max_temp":78
}
- Click the X to dismiss the success banner. Select the Docs check box to see the entire record.
- Click Permissions.
- Click Generate API Key.
- Make a note of the newly generated key and password. Select the check boxes for _reader and _writer of the new API key user.
This concludes the creation and setup of your Cloudant database. Return to Bluemix.