Hi. Welcome and please do say hi to Botty as he is the resident chatbot and he is who you shall be setting up on a Flask server
Please follow the following instructions in order to deploy the flask app (if it does not work, feel free to drop me a call) :
- Clone the repo
- Setup the virtual environment
pipenv install
- Setup the flask server
export FLASK_APP=flaskr
export FLASK_ENV=development
flask run
The API has one main endpoint /chat
and will be used to interact with Botty
- GET
/chat/<username>
allows one to see the chats of a user - GET
/chat
allows one to see all chats ever - POST
/chat
passing{postedBy: "username", data: "chats here please"}
with type as URLencoded form data