Coder Social home page Coder Social logo

torvick / ruby-restful-api-example-rails-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marioluan/ruby-restful-api-example-rails-api

0.0 0.0 0.0 107 KB

RESTful API sample using rails api.

License: MIT License

Shell 0.38% Ruby 99.62%

ruby-restful-api-example-rails-api's Introduction

ruby-restful-api-example-rails-api

RESTful API sample using rails api.

Build Status Dependency Status Code Climate Test Coverage Inline docs

Note: To run the application as a docker container head over README-docker.md.


Features added to the app:

  • api documentation

    • swagger DSL written inside controllers
    • serving swagger-ui whithin the app
  • code quality

    • automatic static analisys of code
    • automatic generation of code coverage reports
  • database sample data

    • rake task to load data [from factories] into database

pre-requisites:

  • ruby (v2.3.1)
  • bundler (v1.12.5)

running

1. download the dependencies

$ bundle install --path=vendor

2. run pending migrations

$ bundle exec rails db:migrate

3. populate the database with random data

$ bundle exec rails db:factories:load

4. load swagger-ui

$ git submodule init
$ git submodule update

5. generate the api documentation

$ bundle exec rake swagger:docs

6. start the app

$ bundle exec rails server

And head over to http://localhost:3000/docs to interact with the api.

useful documentation:

ruby-restful-api-example-rails-api's People

Contributors

marioluan avatar

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.