Simple API for consumer`s books management.
Make sure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/yeppooss/book_api.git
-
Navigate to the project directory:
cd book_api
-
Build the Docker image:
docker-compose build
-
Create the database and run migrations:
docker-compose run rails rake db:create docker-compose run rails rake db:migrate
-
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
.
-
For run tests:
docker-compose run rails bundle exec rspec .