This is a simple API for managing a theatre's schedule. It's built with Ruby on Rails and PostgreSQL.
- CRUD operations for performances.
- Dates validation: avoid overlapping performances.
- Pagination for index endpoint.
- Ruby 3.2.1
- Rails 7.0.0
- PostgreSQL 13
- Docker and Docker Compose(if you want use docker)
-
Clone the repository:
git clone [email protected]:gushul/amarket_homework.git
-
Navigate to the project directory:
cd amarket_homework
-
Build and set up the project using the Makefile:
make setup
-
To start the server:
make server
-
To open a Rails console:
make console
-
To run the test suite:
make test
-
To run database migrations:
make migrate
-
To take down the Docker environment:
make down
The API documentation is available at http:localhost:3000/api-docs
.