Skip to content

jodosha/lotus-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON API App with Lotus

This is an example JSON API application built with Lotus.

Prerequisites

  • Ruby 2+ (with Bundler)
  • Redis
  • Heroku CLI (for deployment)

Development

➜ git clone https://github.com/jodosha/lotus-api-example bookshelf
➜ cd bookshelf && bundle
➜ bundle exec rackup

In a separated shell, start redis-server, then visit: http://localhost:9292.

Testing

Run the test suite via Rake.

➜ bundle exec rake

Deployment

Heroku

Install the Redis plugin for Heroku CLI

➜ heroku plugins:install heroku-redis
➜ heroku create
➜ heroku addons:create heroku-redis:hobby-dev
➜ git push heroku master
➜ heroku open

Copyright

Copyright © 2015 Luca Guidi – Released under MIT License

About

JSON API application example built with Lotus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages