This repository is an example of how we can collect changes on our models and query those changes through an api.
For large volumes of data it is better to use a persistence system designed for this use case:
- If you usually look at the logs, Elasticseach with a combination of tier warm for daily writes and another freeze for storage and long term reads for example.
- If data is consumed very infrequently and queries do aggregations/metrics, BigQuery is a good choice.
cp .env.example .env
pip install -r requirements.txt
python manage.py migrate
Follow the instructions in the shell
python manage.py createsuperuser
python manage.py runserver
For more information about the api, please refer to the automatically generated documentation.
docker build -t auditlog .
docker compose build
docker compose build
docker-compose exec api python manage.py migrate --noinput
docker compose -f docker-compose.yml -f docker-compose.test.yml run api