IBM Developer Advocacy

Now that you understand what Cloudant is, start exploring the service on your own.

Load data

Create a database in one of the following ways:

  • Copy a sample database into your account. Create a replication job using a sample like https://examples.cloudant.com/animaldb or https://examples.cloudant.com/movies-demo as your source database.
  • Use couchimport to load data from a spreadsheet. (See more import tools.)
  • Create a database from scratch. On your Cloudant dashboard, go the upper right of the screen and click Create a database. Try this Databases tutorial on github.

Cloud-based data source? If you want to import from a web-based service like Salesforce or Stripe, try our Simple Data Pipe app to move data in a few easy steps.

Work with Cloudant

You access Cloudant via HTTP/S. Use one of the officially supported Cloudant libraries to speed your development work. For an overview, watch how to use the HTTP API. For more details, read the docs and consult the API Reference.

Simple Queries

  • Cloudant Query is the place to start. This tool uses MongoDB-style query syntax that provides a declarative way to define and query indexes. To try it, go to your Cloudant dashboard, open a database, and click Query. Watch an overview, then read the Cloudant Query docs.

    query

  • The Primary Index is built into every database and lets you perform basic create-read-update-delete operations on documents by directly referencing the document ID, no advance setup or coding necessary. For example, use the API endpoint _all_docs to see all database records:

    https://examples.cloudant.com/animaldb/_all_docs.

    Or retrieve specific document(s) using the key parameter:

    https://examples.cloudant.com/animaldb/_all_docs?key="zebra"

    Want to learn more? Try the Using the Primary Index tutorial on github.

Advanced Indexes and Queries

For more complex views, you need to build an index before you query the data.

Cloudant integrate

If you’re using Cloudant as a developer, consider earning the IBM Cloudant Developer Essentials IBM Open Badge to share verified proof of your achievement.

blog comments powered by Disqus