First version created following blog post on Medium.
Credit to @TJBANEY (original repo can be found here)
Simple but efficient, I will work on integrating more security and features to it in a near future.
- Create a mongodb Database and collection.
- Edit file
app.py
to replace username & password accordingly. - Create a virtual env, install chalice and run
chalice deploy
.
Note that you might encounter few errors if you try to run it with chalice local
:
- Posting a message might require to .decode('utf-8') the body
- Links in html pages will not include "/api" prefix locally