Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 944 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 944 Bytes

activity-pub-test

Minimal ActivityPub server to learn about this protocol.
Python version of 'How to implement a basic ActivityPub server' by Eugen Rochko.

How-To

  • Clone the repo and install Python dependencies
$ make install
  • Create Makefile.custom.config file and update user name you want to use and your server domain:
$ cp Makefile.custom.config.example Makefile.custom.config
$ nano Makefile.custom.config
  • Start the server:
$ make serve
  • To submit a reply to a toot, for instance to answer the toot in Eugen article:
$ curl -d '{ "message" : "Hi!" , "host": "mastodon.social", "toot": "@Gargron/100254678717223630"}' -H "Content-Type: application/json" -X POST https://<domain>/note

where domain is your ActivityPub server domain.