https://github.com/emfcamp/orgahome
A small (mostly) Flask webapp which serves as a repo for some internal EMF webpages.
If you're looking for the main website (emfcamp.org), that's https://github.com/emfcamp/Website.
The Mattermost system emoji map comes from https://github.com/mattermost/mattermost/raw/master/webapp/channels/src/utils/emoji.json, which is saved locally into emoji.json.
You'll need UFFD API credentials, a Mattermost access token, and UFFD OIDC credentials.
In production, the Mattermost access token belongs to systembot, but a PAT
will also do - it just needs to be able to list the users that are in the team.
If you're a Nix enjoyer, you should be able to:
$ nix develop
$ python -m orgahome uvicorn --host 127.0.0.1 -d
# [hack away]
$ treefmt # reformat everything
$ ty check .
$ ruff check .
$ nix fmt
$ nix flake check
Otherwise, you can probably just get away with uv:
$ uv sync
$ uv run python -m orgahome uvicorn --host 127.0.0.1 -d
# check formatting/lint
$ uv run ruff check --fix
$ uv run ruff format
# run typechecking
$ uv run ty check
Note that treefmt may yell at you if you edit non-Python files without running
nix fmt - see treefmt.nix for the configured autoformatters/linters.