/rails5-api-starter

RESTful API Starter Kit based on Rails 5

Primary LanguageRuby

Rails 5 API starter

Rails 5 API starter is a boilerplate which helps you build fast, secure and efficient API for applications. Template based on automatically generated structure of directory and settings which are default delivered by --api switch. Additional to settings are added and initially configure useful Gems, which are often used in Rails stack application.

NOTE: The template is still in the development version. Don't use in production!

Features

Installation

Local

$ git git@github.com:Hawatel/rails5-api-starter.git
$ bundel install

Using docker-compose

$docker-compose build
$docker-compose run rails5-api-starter bin/rails db:migrate RAILS_ENV=development
$docker-compose up

Usage

Command Description
bin/rails s -e development start development server on localhost:3000
bin/rails s -e production start production server on localhost:3000.
bin/rails spec:docs generate API docs files. Output is saved in to docs directory.
bin/rails dev:cache enable/disable cache mode
bin/rails spec run spec tests

License

The Starter Kit is available as open source under the terms of the MIT License.

Useful links

TODO