Comments without tracking
APACHE-2.0 License
Many blogs are written using github pages - so every blog has an associated git repository. This project is a Github App that provides a shim to post comments from such blogs as comments to issues in the associated git repository.
When a user goes to a blog and wants to leave a comment, /login
will redirect
him to authenticate using his github credentials.
--
HTTP/1.1 POST /login
Content-Type: application/json; charset=utf-8
Date: Mon, 05 Jun 2017 11:52:49 GMT
{"ghid": <app-installation-id>}
This creates an access token behind the scenes for the session.
In order to comment you have to pass
HTTP/1.1 POST /comment
Content-Type: application/json; charset=utf-8
Date: Mon, 05 Jun 2017 11:55:39 GMT
{"body": "my comment here"}
You can run the app locally by setting up the python environment first and then starting a gunicorn server
(virtualenv) ~$ python setup.py install
(virtualenv) ~$ gunicorn opine:app --log-file -