Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An example application of using Heroku and Cloudant together.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE-APACHE-2.0
Procfile
README.md
grunt.js
main.js
package.json

README.md

Cloudant/Heroku Example

An example of using Heroku and Cloudant. It collects tweets for the "couchdb" search term using Twitter"s API, storing them in the "heroku-example" database.

Getting Started

These are the install instructions.

  1. Clone this repo onto your computer:

git clone https://github.com/cloudant/cloudantHerokuExample.git

  1. Make sure you have set up Heroku properly. See https://devcenter.heroku.com/articles/quickstart

  2. Install the Cloudant add-on, specifying the free version (basic):

heroku addons:add cloudant:oxygen

  1. Create the app on your Heroku account - you will be using the provided Procfile:

heroku create

  1. Deploy your code to Heroku:

git push heroku master

  1. Scale up the worker process:

heroku ps:scale worker=1

  1. Log into the Cloudant dashboard and view the "heroku-example" database. You will see the stored tweets (may take a few minutes to show up depending on the Twitter Search API and latency) and can write views against them.

Contributing

This project uses grunt (https://github.com/cowboy/grunt) for development. It will make sure that any modifications you make are lint free and pass any tests.

License

Copyright (c) 2012 Cloudant Licensed under the APACHE-2.0 license.

Something went wrong with that request. Please try again.