GitHub - hazybluedot/indie_flask: flask implementation of indieweb webmention server (original) (raw)

IndieWeb webmention server built on Flask

TODO: write docs

For the time being, this is an early implementation of a webmention receiver built on flask. It currently publishes webmentions to a CouchDB or similar database.

Quick start

Start redis

Or, to use a different Celery broker, start that, but remember to modify the config file.

Start the worker

$ celery worker -A indie_flask.celery

Start the flask app

Test

$ source=http://somesource.com/path
$ target=http://sometarget.com/path
$ curl -X POST -d "target=$target&source=$source" http://localhost:5000/webmention
# you should get a 201 response with a status URL
# check the status:
$ curl http://localhost:5000/webmention/<status-id>