Skip to content

Warshavski/booky-api

Repository files navigation

Booky (API)

CircleCI Maintainability Test Coverage

Books management application (API)

Setting up

Requirements

  • Ruby 3.0.2
  • Rails 6.1+
  • Postgresql 13+

Installation

Clone the repo.

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

cd into the directory and install the reqirements.

cd booky-api && bundle install

set up the database

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

Start the server

rails s

Running tests

Running all tests.

bundle exec rspec

Running a specific test file

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

Docker

Setup the project

make setup

Start the application server

make up

Run specs

make test

Run console

make console