Skip to content

EslamEs1/healthtech-ecommerce

Repository files navigation

Health Tech

healthtech

Built with Cookiecutter Django Black code style

Notes about developer

    Created by eslamdeveloper1@gmail.com Feel free to contact me for any questions.

Settings

Moved to settings.

Basic Commands

Type checks

Running type checks with mypy:

$ mypy brain_health

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html

Running tests with pytest

$ pytest

Project

This app comes with Docker.

To run a project: there tow file for run docker local.yml and production.yml

docker-compose -f filename.yml up -d --build

To migrations or createsuperuser:

run command django  
docker-compose -f filename.yml run --rm django python manage.py migrate , makemigrations , createsuperuser

Celery

This app comes with Celery Redis.

To run a celery worker:

celery -A config.celery_app worker -l info

Please note: For Celery's import magic to work, it is important where the celery commands are run. If you are in the same folder with manage.py, you should be right.

To run periodic tasks, you'll need to start the celery beat scheduler service. You can start it as a standalone process:

celery -A config.celery_app beat

or you can embed the beat service inside a worker with the -B option (not recommended for production use):

celery -A config.celery_app worker -B -l info

Docker

See detailed cookiecutter-django Docker documentation.