activitypub/README.MD

36 lines
1 KiB
Plaintext
Raw Normal View History

2024-03-21 13:10:31 +01:00
## Lysand ActivityPub Layer
2024-04-09 20:21:42 +02:00
[![Nix Flake actions](https://github.com/lysand-org/lysand-ap-layer/actions/workflows/nix-flake.yml/badge.svg)](https://github.com/lysand-org/lysand-ap-layer/actions/workflows/nix-flake.yml)
2024-03-21 13:10:31 +01:00
A simple activitypub compatibility layer ("bridge"), to make Lysand compatible with the ActivityPub and ActivityStreams protocol.
The layer is realised in a microservice format.
2024-01-26 21:01:43 +01:00
2024-03-21 13:10:31 +01:00
## Development (Flakes)
This repo uses [Flakes](https://nixos.wiki/wiki/Flakes) from the get-go.
```bash
# Dev shell
nix develop
# or run via cargo
nix develop -c cargo run
# build
nix build
```
We also provide a [`justfile`](https://just.systems/) for Makefile'esque commands.
2024-01-26 21:01:43 +01:00
### Building and running the docker image
To build the docker image, run the following command:
```bash
> docker build -t f:latest .
```
To run the docker image, run the following command:
```bash
docker run -i -e RUST_LOG="debug" -e DATABASE_URL="postgresql://postgres:postgres@host.docker.internal:5432/database" -e LISTEN="0.0.0.0:8080" -p 8080:8080 f:latest
```