Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.77 KB

README.md

File metadata and controls

67 lines (51 loc) · 1.77 KB

Django Aiogram tgbot

Template for developing Telegram bot on Django with Aiogram on ASGI server.

статус


Technology Stack

  • Python
  • Django
  • Aiogram
  • PostgreSQL
  • Docker
  • Github Actions

Dependencies

  • Listed in the file backend/requirements.txt

Development

  • Clone the repository to your server;
  • $ git clone https://github.com/exp-ext/django_aiogram_tgbot.git
  • Create the file `/infra/.env`. The template for filling the file is in /infra/.env.example;
  • When running without certificates, use docker-compose with the DEBUG=1 parameter in .env. This gives nginx a certificate-free configuration;
  • docker-compose-debug.yml is made to run the project in DEBUG mode with the ability to change the code without restarting the containers;
  • $ docker compose -f docker-compose-debug.yml up --build

Deployment on a server with a certificate

  • Install docker and docker-compose-plugin on the server;
  • Clone the repository to your server;
  • Create the file `/infra/.env`;
  • Get certificates in Let's Encrypt by running the script
  • $ sudo ./init-letsencrypt.sh
  • Run the command `docker compose up -d -build`;



GITHUB: exp-ext

Join Telegram