Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yokwejuste/aws-django-redis
A repo for Django Celery using Elastic Cache as broker.
https://github.com/yokwejuste/aws-django-redis
Last synced: 13 days ago
JSON representation
A repo for Django Celery using Elastic Cache as broker.
- Host: GitHub
- URL: https://github.com/yokwejuste/aws-django-redis
- Owner: yokwejuste
- Created: 2024-08-06T17:44:19.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T12:11:26.000Z (5 months ago)
- Last Synced: 2024-08-08T13:47:00.883Z (5 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## AWS Django Celery Redis using ElasticCache
To run this project you need to have an AWS account and a Redis ElasticCache instance running.
### Steps to run the project:
1. Clone the repository
2. Create a virtual environment and activate it
3. Install the requirements
4. Create a `.env` file with the following command:
```bash
cp .env.example .env
```
5. Fill the `.env` file with your AWS credentials and the Redis ElasticCache endpoint
6. Run the Django server with the following command:
```bash
python manage.py runserver
```
7. Run the Celery worker with the following command:
```bash
celery -A aws_django_celery_redis worker --loglevel=info
```
## OR
Run this with docker
```bash
docker run -p 8000:8000
```## Test Caching and broker
Go to `http://localhost:8000/add/` to view your task id