Skip to content

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

Notifications You must be signed in to change notification settings

remi/her-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages