-
Clone the repository:
git clone https://github.com/storlay/online_library.git cd online_library -
Set up environment variables:
- Create a
.envfile in the project's root directory. You will need to populate it with the required configuration values (e.g., database credentials, secret keys). - Create public (
public.pem) and private (private.pem) jwt certs in thesrc/certs/jwtdirectory.
- Create a
-
Build and run the application:
docker compose -f infra/docker-compose.local.yml up --build -d
-
Access the application:
The API will be running and available at
http://127.0.0.1:8000.
The API documentation is automatically generated and can be accessed at the following endpoints:
- Swagger UI:
http://127.0.0.1:8000/docs - ReDoc:
http://127.0.0.1:8000/redoc