Skip to content

Anton-Karpenko/test1

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published