Giter Site home page Giter Site logo

lotus-api-example's Introduction

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

lotus-api-example's People

Contributors

jodosha avatar

Stargazers

Stephen Benner avatar Enrique Macip avatar Henricus Louwhoff avatar Erol Fornoles avatar

Watchers

James Cloos avatar

lotus-api-example's Issues

Wrong module name on the blog post

Hey there, thanks for sharing this!

I'm following your post, but there's a wrong module name in the snippet for the ApiHelper:

#...
def app
  Bookshelf::V1::Application.new
end

Though the correct would be:

#...
def app
  Bookshelf::API::Application.new
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.