- Python 3.5
- tornadoweb
- mongodb
$ mkvirtualenv grot-server -p /usr/bin/python3.5
$ pip3 install -r requirements.txt
$ mkdir -p var/db
$ mkdir -p var/log
$ export BOT_TOKEN=`cat /proc/sys/kernel/random/uuid`
$ echo "BOT_TOKEN = '$BOT_TOKEN'" >> settings.py
$ python3 db_init.py
$ cd ..
$ git clone [email protected]:stxnext/grot-stxnext-bot.git
Fill in Register a new OAuth application
form. Save generated Client ID in GH_OAUTH_CLIENT_ID
and Client Secret
in GH_OAUTH_CLIENT_SECRET
in settings.py
file.
$ workon grot-server
$ ./mongod
$ python3 server.py
$ python3 tests/test_server.py
$ python3 -m unittest discover
For details check grot-client repository.