-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Setup a PostgreSQL database with the following credentials:
username: postgres password: postgres database: ad_hub
To start the application, run:
python main.py
The server will start running on http://localhost:8000
.
To run unit tests, use Pytest:
pytest
You can access the Swagger documentation for the API at http://localhost:8000/docs
. This provides an interactive interface to explore and test the API endpoints.