Now that you understand what Cloudant is, start exploring the service on your own.
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/movies-demoas 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.
- 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.
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_docsto see all database records:
Or retrieve specific document(s) using the key parameter:
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.
- You build Secondary Indexes using the MapReduce paradigm. Watch an introduction to MapReduce and then read details.
- The Search index, based on Apache Lucene, lets you run ad hoc, flexible queries on one or more field in your documents. Watch an introduction and read more.
- Use Cloudant’s geospatial index to build complex geospatial queries and generate maps. Watch an overview and check out the Cloudant Geo documentation
- Load and analyze Cloudant data in Scala notebooks or Python notebooks.
- Load Cloudant data into dashDB data warehouse.