This is an example of how Her can be used to create an application powered by a RESTful API.
Ruby
Switch branches/tags
Nothing to show
Latest commit a1144f1 Apr 20, 2013 @remiprev remiprev Initial commit
Permalink
Failed to load latest commit information.
api Initial commit Apr 20, 2013
consumer Initial commit Apr 20, 2013
.env.default Initial commit Apr 20, 2013
.gitignore Initial commit Apr 20, 2013
Procfile Initial commit Apr 20, 2013
README.md Initial commit Apr 20, 2013

README.md

Grape + Her example

This is an example of how to use Her to consume a simple API. It consists of two separate applications, a REST API (powered by grape and activerecord) and a consumer application (powered by sinatra and her).

Installation and Usage

# Clone the repository
$ git clone git://github.com/remiprev/her-example.git

# Go to the directory
$ cd her-example

# Go to each application and run `bundle install`
$ cd api; bundle install; cd ..
$ cd consumer; bundle install; cd ..

# Create the API database
$ cd api; sqlite3 db/development.db ""; bundle exec rake db:migrate; cd ..

# Start foreman with the Procfile
$ foreman start

This should start the API on http://0.0.0.0:3100 and the consumer on http://0.0.0.0:3200