background task execution (django + celery)
- Django -> https://www.djangoproject.com/
- Celery -> https://docs.celeryproject.org/en/latest/index.html
- factory_boy -> https://factoryboy.readthedocs.io/en/latest/
- black -> https://black.readthedocs.io/en/stable/
- isort -> https://timothycrosley.github.io/isort/
- Python unittest -> https://docs.python.org/3/library/unittest.html
- Django tests -> https://docs.djangoproject.com/en/3.0/topics/testing/
- coverage -> https://coverage.readthedocs.io/en/coverage-5.0.3/
Create a virtual python environment and install libraries with pip
pip install -r requirements.txt
Create all virtual environments (using tox)
tox
Migrate the database
python manage.py migrate
run tests (verify successful installation)
pytest
run tests (verify coverage)
pytest --cov
Run development server
python manage.py runserver
Enter the address
http://localhost:8000