This is a simple Django REST API for transaction system
python3 -m venv env
source env/bin/activate
pip install poetry
poetry installCreate .env file, extract the virtual environment variables into the .env file (you can find an example in env.example)
./manage.py migrate
./manage.py runserverRun tests
./manage.py testRun linting and formatting
flake8 . --count --statistics --show-source &&
black . &&
isort --check . &&
bandit -r .- Watch commands in the Makefile
make help- Build docker image
make build- Run docker container
make up- Upload it to the database with the following command:
make loaddata- Run tests
make test- Stop docker container
make down- Clean all docker containers
make prune- Python 3.11
- Django 4.2.5
- Django REST Framework 3.14.0
- Docker 20.10.17
- Poetry 1.1.11
- Nginx 1.21.3