A Flask Web App to manage comments for a blog.
- Create a personal app in your Dropbox.
- Create an
ACCESS TOKEN
for your app. (Don't share it with anyone!) - Clone this repository locally, install all the pip dependencies and adjust the
SITE_NAME
variable in theapp.py
file to your blog site. - Deploy the web app on any Python hosting platform like Heroku.
- Create a
DROPBOX_ACCESS_TOKEN
environment key on your platform and add your Dropbox access token to this key. - You are ready to go.
From your app, send a POST request to <site.url>/add
URL with name
, content
, blog
as parameters. The comments are saved to the comments.json
file in your Dropbox app.
From your app, send a POST request to <site.url>/get
URL with blog
as a parameter. The comments are then fetched from the comments.json
file in your Dropbox app.
In case of any anomalies, please file an issue here.