Skip to content

Warshavski/elplano-api

Repository files navigation

Example

Classes schedule management application (API)

Build Status Maintainability Test Coverage

Introduction

El Plano is a self hosted class schedule management REST API server built with Rails and based on JSON API specification.

Setting up

Requirements

  • Ruby 2.6.5
  • Rails 5.2.2+
  • Postgresql 9.5+
  • Redis 2.8+

Installation

Clone the repo.

git clone https://github.com/warshavski/elplano-api.git

Move into the project directory and install the requirements.

cd elplano-api && bundle install

Create and configure .env file.

mv .env.example .env

Set up the database.

rake db:create 
rake db:migrate 
rake db:seed

Start the application development server.

rails s

Docker

Install docker-compose.

Create and configure .env file.

mv .env.example .env

Move into the project directory and start app via docker-compose.

cd elplano-api && docker-compose up -d

Running tests

Running all tests.

bundle exec rspec

Running a specific test file.

bundle exec rspec ./spec/path/to/file

Documentation

Generate/Update API documentation.

bundle exec rspec spec/acceptance --format RspecApiDocumentation::ApiFormatter

See API documentation.

/documentation

About

"JSON:API"-centric API for classes management

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages