Discover books, shows, and movies at your level. Track your progress by filling your Shelf with what you find, and share with other language learners. *No dusting required.
shlf.space
···11-# shelf
11+# shlf.space
2233Discover books, shows, and movies at your level. Track your progress by
44filling your Shelf with what you find, and share with other language learners.
···6677## docs
88- [contributing guide - **please read before opening a PR**](./docs/contributing.md)
99-- [hacking on shelf](./docs/hacking.md)
99+- [hacking on shlf](./docs/hacking.md)
1010
···55- [minify](https://github.com/tdewolff/minify)
66- [goat](https://github.com/bluesky-social/goat)
7788-## Running shelf
88+## Running shlf
991010To authenticate, you will need OAUTH JWKs to be setup:
1111```bash
1212-export SHELF_OAUTH_CLIENT_KID="$(date +%s)"
1313-export SHELF_OAUTH_CLIENT_SECRET="$(goat key generate -t P-256 | grep -A1 "Secret Key" | tail -n1 | awk '{print $1}')"
1212+export SHLF_OAUTH_CLIENT_KID="$(date +%s)"
1313+export SHLF_OAUTH_CLIENT_SECRET="$(goat key generate -t P-256 | grep -A1 "Secret Key" | tail -n1 | awk '{print $1}')"
1414```
15151616-You will need to fetch a series of static assets shelf depends on:
1616+You will need to fetch a series of static assets shlf depends on:
1717```bash
1818mkdir -p ./static/files
1919···27272828To run:
2929```bash
3030-SHELF_DEV=true go run cmd/server/main.go
3030+SHLF_DEV=true go run cmd/server/main.go
3131```
32323333If you modified the views, you will need to regenerate them:
+7-7
generate_lexicons.sh
···11#! /bin/bash
2233go run github.com/bluesky-social/indigo/cmd/lexgen \
44- --package shelf \
55- --outdir api/shelf \
44+ --package shlf \
55+ --outdir api/shlf \
66 --build-file lexicon-build-config.json \
77 lexicons/
8899-find ./api/shelf -type f -exec sed -i.bak 's/\lexutil/\/\/\lexutil/' {} +
1010-find ./api/shelf -type f -exec sed -i.bak -E 's/^(.+)github(.+)//' {} +
99+find ./api/shlf -type f -exec sed -i.bak 's/\lexutil/\/\/\lexutil/' {} +
1010+find ./api/shlf -type f -exec sed -i.bak -E 's/^(.+)github(.+)//' {} +
1111go run ./cmd/cborgen.go
12121313go run github.com/bluesky-social/indigo/cmd/lexgen \
1414- --package shelf \
1515- --outdir api/shelf \
1414+ --package shlf \
1515+ --outdir api/shlf \
1616 --build-file lexicon-build-config.json \
1717 lexicons/
18181919-rm -rf ./api/shelf/*.bak
1919+rm -rf ./api/shlf/*.bak