Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 954 Bytes

File metadata and controls

40 lines (36 loc) · 954 Bytes

Installation

  1. python -m venv .venv
  2. source .venv/bin/activate
  3. pip install -r requirements/local.txt
  4. 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
    
  5. make migrate
  6. make superuser
  7. make server

Links

Swagger documentation

Admin panel

Make file

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

Possible improvements

Because of limited time this project lacks:

  1. Documentation
  2. Unit-tests (There are only couple for images app)
  3. Views count for items can be stored in cache to unload primary db