Skip to content

Template for developing Telegram bot in Django + Aiogram on ASGI server.

License

Notifications You must be signed in to change notification settings

exp-ext/django_aiogram_tgbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template for developing Telegram bot in Django + Aiogram on ASGI server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published