Skip to content

DeckieHQ/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

714f21f · Jun 22, 2017
Jun 22, 2017
Feb 2, 2016
Nov 15, 2016
Dec 13, 2016
Oct 15, 2016
Jan 12, 2016
Jan 12, 2016
Aug 30, 2016
Dec 13, 2016
Jan 12, 2016
Oct 4, 2016
May 12, 2016
Jan 13, 2016
Jan 25, 2016
Aug 31, 2016
Aug 31, 2016
Jan 12, 2016
Apr 11, 2016
Apr 11, 2016
Sep 18, 2016
Jan 12, 2016
Aug 30, 2016
Apr 18, 2016
Feb 19, 2016
Jun 16, 2016
Apr 11, 2016

Repository files navigation

Deckie API

CircleCI Code Climate Test Coverage

This is the code source of deckie's platform API. This API is written in Ruby with Rails 5.

This API is following the REST architecture and the JSON API specification.

Prerequisite

To run, test and deploy this project, please install before Docker 1.8+ and Docker Compose 1.5+ and Make.

N.B. Ruby is not required, the development environment and the API will be run inside linux containers including the proper ruby version.

Run the API in production mode

In foreground:

make up

Run the job worker in production mode

make worker

Run the whole stack in production mode

make detach

This will run both the API and the job worker inside their own container.

To stop and clean everything after running the whole stack in background:

make clean

Open a shell in the development environment:

make shell

Files inside the container will be synchronised with local files.

You can now type commands like:

bundle exec rake db:migrate

Run the test suite

Run the migrations once first:

make migrations

Then:

make test

Deploy the application

Not yet implemented.

License

Deckie API is licensed under the Apache License, Version 2.0. See LICENSE for full license text.