SonyaCore / DjangoMQ

DjangoMQ is a restful api which sends & receives messages with RabbitMQ / AMQP protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DjangoMQ

python django

DjangoMQ is a RESTful API that facilitates sending and receiving messages using the RabbitMQ/AMQP protocol.

Installation

To install and run the project, you will need Docker Compose installed on your system. Once you have Docker Compose installed, you can follow these steps:

Clone the project repository:

git clone https://github.com/SonyaCore/DjangoMQ.git

Change into the project directory:

cd DjangoMQ

Modify config.env with your desired value

Build the Docker image:

docker-compose build

Start the containers:

docker-compose up

The project will now be running at http://localhost:8080/.

Usage

The API provides the following endpoints:

Environment Variables

The following environment variables can be set in the config.env file:

  • MODE: Set to container if running in a containerized environment, or local if running locally.

  • INIT: Set to true to enable creation of the admin user on startup, or false to skip admin creation.

  • DJANGO_SU_NAME: The username for the admin user.

  • DJANGO_SU_EMAIL: The email address for the admin user.

  • DJANGO_SU_PASSWORD: The password for the admin user.


  • DB_ENGINE: The database engine to use. For now, the project is configured to use SQLite3.
  • DB_USERNAME: The username for the mysql database.
  • DB_PASS: The password for the mysql database.
  • DB_HOST: The hostname for the mysql database.

About

DjangoMQ is a restful api which sends & receives messages with RabbitMQ / AMQP protocol

License:MIT License


Languages

Language:Python 94.3%Language:Dockerfile 2.8%Language:Shell 2.8%