Skip to content

AttractorSoftware/reporting-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Report bot

Installation

  • Install Docker
  • Install docker-compose
  • Run docker-compose build from top dir
  • Wait
  • Run docker-compose up
  • Open http://localhost:5000
  • Profit

Developers guide

# install project dependencies
pip install -r app/dev-requirements.txt

# create database (only first time, in development mode creates sqlite3 file) before go to app directory
cd app
python manage.py db init

# initialize new migrations (the command creates new migrations file)
python manage.py db migrate

# apply migrations to database
python manage.py db upgrade

# set WEBHOOK_HOST env variable in ~/.bashrc
export WEBHOOK_HOST='somelongrandomname.serveo.net'

# run proxy server in another terminal tab (you can use webhooks after that)
ssh -R $WEBHOOK_HOST:443:localhost:5000 serveo.net

# run main app and bot with one command
python manage.py runserver

Further improvements

Use proper folder structure Add DB support:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •