This is a REST API application that manages a database and simulates a movie library.
- RESTful API endpoints for basic CRUD operations.
- Docker Compose configuration for easy deployment.
- Environment variable setup for configuring database connection.
- Docker: Installation Guide
- Docker Compose: Installation Guide
-
Clone the repository:
git clone https://github.com/dkshi/vktest.git
-
Navigate to the project directory:
cd vktest
-
Create a
.env
file in the project root with the following content:DB_NAME=postgres DB_HOST=db DB_PORT=5432 DB_USERNAME=postgres DB_PASSWORD=qwerty DB_SSLMODE=disable
-
Start the application using Docker Compose:
docker-compose up
-
Access Swagger at
http://localhost:8080/swagger/index.html#
.
- To change database connection settings, modify the values in the
.env
file. - Additional environment variables can be added to customize other aspects of the application.