Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
/ activity-pub-test Public archive

Minimal ActivityPub server to learn about this protocol

License

Notifications You must be signed in to change notification settings

SamR1/activity-pub-test

Repository files navigation

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.

About

Minimal ActivityPub server to learn about this protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published