···1717run_cmds() {
1818 desc=$1
1919 shift
2020+ cd "$desc" || FAILED=1 && return
2021 echo "Running pre-commit checks for $desc..."
2122 if ! "$@"; then
2223 echo "ERROR: Pre-commit checks for $desc failed. Aborting commit."
2324 FAILED=1
2425 fi
2626+ cd ..
2527}
26282727-echo "$STAGED" | grep -q "^backend/" && run_cmds "backend" pnpm run fmt && pnpm run lint
2929+echo "$STAGED" | grep -q "^backend/" && run_cmds "backend" pnpm run fmt && run_cmds "backend" pnpm run lint --fix
2830git update-index --again
29313032echo "$STAGED" | grep -q "^frontend/" && run_cmds "frontend" pnpm run fmt
3133git update-index --again
32343333-echo "$STAGED" | grep -q "^lexicons/" && run_cmds "lexicons" pnpm run generate && pnpm run prepublish
3535+echo "$STAGED" | grep -q "^lexicons/" && run_cmds "lexicons" pnpm run generate && run_cmds "lexicons" pnpm run prepublish
3436git update-index --again
35373638# If any failed, block commit
+6-7
backend/README.md
···11# @clipprjs/server
2233-TypeScript implementation of the Clippr AppView, using ~~bun~~ NodeJS and Hono.
33+TypeScript implementation of the Clippr AppView, using ~~Bun~~ NodeJS and Hono.
4455-> ## Why not Bun?
66-> We currently aren't using Bun due to some compatibility errors. A migration to Bun is planned in the future,
77-> preferably before launch.
55+> **Why not Bun?** We currently aren't using Bun due to some compatibility errors. A migration to
66+> Bun is planned in the future, preferably before launch.
8798## Start development server
109···1514pnpm run dev
1615```
17161818-Open http://localhost:9090 and enjoy
1919-2017## Build for production
21182219```shell
···2724pnpm run start
2825```
29262727+Open http://localhost:9090 and enjoy
2828+3029## current status
31303231- ✅ Ingesting content from the firehose (using Jetstream)
···3635- 🟡 API documentation
3736- 🟡 Creating responses to unauthenticated API calls
3837- 🟡 Interactions with the frontend
3939-- 🔴 Creating responses to authenticated API calls3838+- 🔴 Creating responses to authenticated API calls
+1
backend/config.example.toml
···2626## NOTE: Storing the database in-memory does not work as the schema is not properly loaded. Fixme!
2727[database]
2828## Paths can be used here.
2929+## It is not recommended to change this if you are using Docker.
2930name = "file:clippr.db"
30313132## How the server interacts with the ATproto network.