self-hosted listenbrainz and last.fm proxy
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889help: @just --list# Bump version, update CHANGELOG, tag, and push (requires git-cliff)bump: @hack/git-release# Setup pnpm and spagosetup: pnpm install pnpm spago install# Build the project locallybuild: pnpm run build# Build a releaserelease: pnpm run release# Run the project locallyrun: pnpm spago run# Build and run locallydev: build run# Run teststest: pnpm test# Format PureScript source codetidy: pnpm run tidy# Enter the Nix development shellshell: nix develop# Nix operations (build, run)nix command: @if [ "{{ command }}" = "build" ]; then \ nix build .; \ elif [ "{{ command }}" = "run" ]; then \ ./result/bin/corpus-server; \ else \ echo "Unknown nix command: {{ command }}"; \ exit 1; \ fi# Add a new user (--slug and --db required; --name, --listenbrainz-user, --lastfm-user optional)add-user *args: node server.js add-user {{args}}# Reset the API token for a user (--slug required)reset-token *args: node server.js reset-token {{args}}# List all userslist-users: node server.js list-users# Render docs diagrams (requires graphviz)docs: hack/graphviz docs/architecture.dot# Run quality and security checkscheck: pnpm spago build --strict pnpm exec purs-tidy check "src/**/*.purs" "test/**/*.purs" pnpm exec elm make src/Client.elm --output=/tmp/corpus-client.js pnpm exec elm-test# Manage the container image (build, load, push)oci command: @if [ "{{ command }}" = "build" ]; then \ nix build .#container; \ elif [ "{{ command }}" = "load" ]; then \ podman load < result; \ elif [ "{{ command }}" = "push" ]; then \ skopeo copy \ --dest-precompute-digests \ docker-archive:result docker://ghcr.io/mtmn/corpus:latest; \ else \ echo "Unknown container command: {{ command }}"; \ exit 1; \ fi