juniorcarvalho / simple-email-celery

A simple api for sending email using Django, Django Rest Framework and Celery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APMBuild Status

simple-email-celery

A simple api for sending email using Django, Django Rest Framework and Celery.

We use docker to run a redis instance

Start

  1. Clone project: git clone https://github.com/juniorcarvalho/simple-email-celery.git

  2. Create a virtualenv: python -m venv .venv

  3. Active virtualenv: source .venv/bin/activate

  4. Copy .env-sample to .env and configure your settings.

  5. Install requirements: pip install -r requirements.txt

  6. Run redis container: make docker-compose-up or docker-compose up -d

  7. Run Celery: make celery or celery -A sendemail worker -l info

  8. Run project: make dev or python manage.py runserver

Tests

pip install -r requirements-test.txt

make test or pytest -s -vvv

About

A simple api for sending email using Django, Django Rest Framework and Celery.

License:MIT License


Languages

Language:Python 98.5%Language:Makefile 1.5%