Skip to content

gennadis/dvmn_teams

Repository files navigation

ProjectsAutomation Service

This project automates the process of Dvmn project teams creation.
You can install and run it on your local machine or use preconfigured Heroku app

Screenshot

Installation

  1. Clone project
git clone https://github.com/gennadis/dvmn_teams.git
cd dvmn_teams
  1. Create virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Rename .env.example to .env and fill your secrets in it.
    Important! Place .env in dvmn_teams folder.

  2. Migrate

python manage.py migrate
  1. Create Django superuser
python manage.py createsuperuser
  1. Create and import fake fixtures if needed
    50 students and 2 PM will be generated and added to a database.
python manage.py makefakes
python manage.py loaddata students.json pms.json timeslots.json
  1. Make empty teams for PMs and students
    Generated teams will contain:
  • PM
  • Timeslot
  • Group level
  • No students
python manage.py maketeams
  1. Run gunicorn web server
gunicorn dvmn_teams.wsgi
  1. Run telegram bot
python manage.py telebot

Usage

  1. Open admin panel
    Open app in browser http://127.0.0.1:8000/admin/

  2. Add yourself as a Student to test the bot
    Make sure to enter your real Telegram @username, otherwise bot won't recognize you as a student.

  3. Start using bot by typing /start command