- Clone the repository
- Run
docker compose up
- Create venv in root folder
python -m venv venv
-
Activate venv:
For macOS:
source venv/bin/activate
For Windows:
venv\Scripts\activate
-
Install dependencies specified in requirements.txt
pip install -r requirements.txt
- Run the server
python manage.py runserver
If it doesn't work also try:
python manage.py runserver 0.0.0.0:8000
Login via /auth/token/login/
endpoint with the credentials of previously created user. On success, the endpoint will return token needed to use API.
When making requests to API, put received token in Authentication header:
Authentication: token <your_token>
Run
python .\manage.py generateschema --format=openapi-json --file openapi.json