Server component for comment tracking systems.
https://bovine.codeberg.page/comments/
- Python 95.1%
- Gherkin 3.3%
- HTML 0.6%
- Shell 0.6%
- Dockerfile 0.4%
|
Helge
aacdba8cb1
All checks were successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/create_release Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/website Pipeline was successful
ci/woodpecker/tag/publish_to_codeberg_npm Pipeline was successful
|
||
|---|---|---|
| .woodpecker | Missing build step for asyncapi | |
| comments | Next version | |
| docs | Document configuration | |
| features | Repair redirects | |
| resources | Remove generated file and add .gitignore | |
| .gitignore | Enable likes/shares connections for ActivityPub | |
| cattle_grid.toml | Modifications for behave tests | |
| CHANGES.md | Next version | |
| config.toml | Enable delete_all testing endpoint | |
| docker-compose.yml | Modifications for behave tests | |
| FEDERATION.md | Add FEDERATION.md | |
| fediverse-features.toml | Migrated steps to cattle_grid | |
| mkdocs.yml | Update to published mkdocs-fedi-comments | |
| pyproject.toml | Migrated steps to cattle_grid | |
| README.md | Enable likes/shares connections for ActivityPub | |
| update_docker.sh | Modifications for behave tests | |
| uv.lock | Migrated steps to cattle_grid | |
comments
comments is a cattle_grid based Fediverse application that allows bringing comments to static sites.
Development
One can run the server via
uv run uvicorn comments:app --port 2313
the rabbitmq backend can be configured via
MS_AMQP_URL.
docker-compose
If the cattle_grid docker environment is running, one can run one for this server via
docker compose up
The docker container might need to be build via the ./update_docker.sh script.
This script ensures that its requirements match the development environment.
Running behave tests
Download the fediverse features via
uv run fediverse-features
Then start a runner with
docker compose run --rm --name runner comments-app /bin/sh
Then run the behave tests with
behave
Tests etc
Run tests and lint with
uv run pytest
uv run pyright
uv run ruff format
uv run ruff check
Writing schemas
uv run python -mcomments openapi
uv run python -mcomments asyncapi
These can then be viewed by
uv run mkdocs serve