Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Example for using Cloudant with Spring-Boot-Starter

Build Status

Running with Cloudant

  1. Place your Cloudant credential in the property file:
src/main/resources/application.properties
  1. Start Spring-boot as usual:
mvn spring-boot:run
  1. Saving data to DB but hitting the URL: http://localhost:8080/save
  2. Then check the data in your Cloudant account, it should save your pet data to a DB instance called 'myDB'

Running with local CouchDB

You may want to use a local CouchDB instance instead, the easiest way to do this is to use Docker

docker run -ti --rm -p 5984:5984 klaemo/couchdb

(See CouchDB Docker guide)

  1. Once you have CouchDB running locally, you can just fire up the 'local' SpringBoot profile:
mvn spring-boot:run -Dspring.profiles.active=local
  1. Saving data to DB by hitting the URL: http://localhost:8080/save
  2. Check your CouchDB instance for the saved data, this is available at: http://localhost:5984/_utils/database.html?mydb

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages