python -m venv .venv
source .venv/bin/activate
pip install -r requirements/local.txt
- Create
.env
file and add some variables:REDIS_URL=redis://redis:6379/0 DATABASE_URL=postgres://<user>:<pass>@localhost:5432/<db_name> CELERY_BROKER_URL=redis://redis:6379/0
make migrate
make superuser
make server
coverage:
coverage run -m pytest
coverage-report:
coverage report -m
server:
python manage.py runserver
migrate:
python manage.py migrate
migrations:
python manage.py makemigrations
superuser:
python manage.py createsuperuser
Because of limited time this project lacks:
- Documentation
- Unit-tests (There are only couple for images app)
- Views count for items can be stored in cache to unload primary db