1
0
Fork
You've already forked comments
0
forked from bovine/comments
No description
  • Python 95.3%
  • Gherkin 3.2%
  • HTML 0.6%
  • Shell 0.5%
  • Dockerfile 0.4%
2025年12月02日 16:48:29 +01:00
.woodpecker Missing build step for asyncapi 2025年10月20日 19:36:39 +02:00
comments Updates for new cattle grid version 2025年12月02日 16:48:29 +01:00
docs Update FEP draft with info from FEP-19b3 2025年11月10日 16:47:15 +01:00
features Repair redirects 2025年10月23日 20:01:09 +02:00
resources Explain cattle_grid.auth 2025年10月25日 19:13:31 +02:00
.gitignore Enable likes/shares connections for ActivityPub 2025年10月22日 20:01:33 +02:00
cattle_grid.toml Updates for new cattle grid version 2025年12月02日 16:48:29 +01:00
CHANGES.md Make name of account exchange confiugrable 2025年11月03日 17:25:35 +01:00
config.toml Remove the need to configure username 2025年11月03日 17:19:55 +01:00
docker-compose.yml Explain cattle_grid.auth 2025年10月25日 19:13:31 +02:00
FEDERATION.md Add FEDERATION.md 2025年10月20日 14:01:07 +02:00
fediverse-features.toml Migrated steps to cattle_grid 2025年10月23日 15:45:55 +02:00
mkdocs.yml Add codeberg source facts to docs 2025年11月03日 15:00:54 +01:00
pyproject.toml Update cattle_grid 2025年12月02日 16:04:28 +01:00
README.md Update dependencies 2025年11月30日 21:25:10 +01:00
update_docker.sh Modifications for behave tests 2025年10月19日 13:13:02 +02:00
uv.lock Update cattle_grid 2025年12月02日 16:04:28 +01:00

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 COMMENTS_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 after the nginx container has started, you 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