To run this project you need to have an AWS account and a Redis ElasticCache instance running.
- Clone the repository
- Create a virtual environment and activate it
- Install the requirements
- Create a
.env
file with the following command:cp .env.example .env
- Fill the
.env
file with your AWS credentials and the Redis ElasticCache endpoint - Run the Django server with the following command:
python manage.py runserver
- Run the Celery worker with the following command:
celery -A aws_django_celery_redis worker --loglevel=info
Run this with docker
docker run -p 8000:8000 <aws_django_celery_redis_image>
Go to http://localhost:8000/add/
to view your task id