From c5b7eba05243a80203302e9f2b9ee96083648eeb Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Tue, 21 May 2019 16:21:40 +0530 Subject: [PATCH] Update README. --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92d329c..c8a40ad 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,29 @@ # Questable -A game-like To-Do List Telegram Bot \ No newline at end of file +A game-like To-Do List Telegram Bot. + +Source code for [Questable Bot](https://t.me/questable_bot) and the relevant +[API](https://api.questable.webionite.com/) + +# Self Hosting + ++ Clone the repository. + + `git clone https://gitlab.com/questable/questable_bot.git` ++ `cd questable` + +## Telegram Bot + ++ Install the dependencies + + `pip3 install python-telegram-bot` ++ Run the bot + + `python3 bot.py` + +## Questable API Server + ++ Install the dependencies + + `pip3 install Flask` ++ Install `gunicorn` + + `pip3 install gunicorn` ++ Run `gunicorn3 -b 127.0.0.1:5000 server:app`. Change port if you want to run + gunicorn on a different port. ++ Set up a reverse proxy from your webserver to `localhost:5000`.