mbrsagor / RabbitMQ

Simple Async Django App with Celery and RabbitMQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RabbitMQ

RabbitMQ is the most widely deployed open source message broker.

You have to must install below in your system.

Prerequisites

  • Python
  • Django
  • RabbitMQ-server

Setup:

The following steps will walk you thru installation on a Mac. I think linux should be similar. It's also possible to develop on a Windows machine, but I have not documented the steps. If you've developed django apps on Windows, you should have little problem getting up and running.

git clone https://github.com/mbrsagor/RabbitMQ.git
cd RabbitMQ
virtualenv venv --python=python3.8
pip install -r requirements.txt
Then create .env file and paste code from sample.env file and add validate information.

|--> .sample.env
|--> .env

Run:

./manage.py makemigrations && manage.py migrate
./manage.py createsuperuser
./manage.py runserver
Run RabbitMQ:
rabbitmq-server start
celery -A RabbitMQ worker -l info

About

Simple Async Django App with Celery and RabbitMQ


Languages

Language:Python 78.5%Language:HTML 19.6%Language:Shell 1.8%