Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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

About

This is an example of how Her can be used to create an application powered by a RESTful API.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages