Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 997 Bytes

README.md

File metadata and controls

52 lines (37 loc) · 997 Bytes

GROT

Requirements

Install

$ 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

Configure GitHub OAuth

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.

Run

Server

$ workon grot-server
$ ./mongod
$ python3 server.py

Tests

$ python3 tests/test_server.py
$ python3 -m unittest discover

Client

For details check grot-client repository.