- 🛡️ High Coverage: Rigorous unit tests for robust codebase assurance.
- 😊 Fast CRUD Router: Quick and easy create, read, update, and delete operations.
- ✅ Uniform API: Consistent responses throughout the service.
- 🔍 Trace IDs: Simplified issue tracking with trace IDs in logs
git clone https://github.com/lihuacai168/django-ninja-demo.git
# set env
cp .env.example .env
# start app
docker-compose -f docker-compose-without-db.yml --env-file=${PWD}/.env up --build
python3 -m venv venv
source venv/bin/activate
cd django-ninja-demo && pip install -r requirements.txt
python manage.py migrate
python manage.py runserver localhost:8000
Open api docs open in browser
# setting.py
broker_url = "redis://127.0.0.1:6379/0"
# start celery worker, using command line
python -m celery -A apidemo.celery_config worker -l INFO
# start celery beat, using command line
python -m celery -A apidemo.celery_config beat -l DEBUG