akhmel / book_api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Book API

Simple API for consumer`s books management.

Prerequisites

Make sure you have the following installed on your machine:

Getting Started

  1. Clone the repository:

    git clone https://github.com/yeppooss/book_api.git
  2. Navigate to the project directory:

    cd book_api
  3. Build the Docker image:

    docker-compose build
  4. Create the database and run migrations:

    docker-compose run rails rake db:create
    docker-compose run rails rake db:migrate
  5. Start the application:

    docker-compose up

The application will be accessible at http://localhost:3000.

You will have an API docs at http://localhost:3000/api-docs.

Testing

  1. For run tests:

    docker-compose run rails bundle exec rspec .

About


Languages

Language:Ruby 99.1%Language:Dockerfile 0.5%Language:HTML 0.4%