learn and share notes on atproto (wip) 馃
malfestio.stormlightlabs.org/
readability
solid
axum
atproto
srs
1# Malfestio
2
3# Build all Rust crates
4build:
5 cargo build
6
7# Build for release
8build-release:
9 cargo build --release
10
11# Run the server via CLI
12start:
13 cargo run --bin malfestio-cli start
14
15# Fetch test data for readability tests
16fetch-test-data:
17 ./scripts/fetch_test_data.sh
18
19# Run readability tests (fetches data first)
20test-readability: fetch-test-data
21 cargo test -p malfestio-readability --test readability_tests
22
23# Run all tests
24test:
25 cargo test --quiet
26
27# Check code without building
28check:
29 cargo check
30
31# Run clippy lints
32lint:
33 cargo clippy --fix --allow-dirty
34
35# Format code
36fmt:
37 cargo fmt
38
39# Install frontend dependencies
40web-install:
41 cd web && pnpm install
42
43# Run development server
44web-dev:
45 cd web && pnpm dev
46
47# Build frontend for production
48web-build:
49 cd web && pnpm build
50
51# Run frontend tests
52web-test:
53 cd web && pnpm test
54
55# Type check frontend
56web-check:
57 cd web && pnpm check
58
59# Lint frontend
60web-lint:
61 cd web && pnpm lint
62
63# Start both backend and frontend (in separate terminals recommended)
64dev:
65 @echo "Start backend: just start"
66 @echo "Start frontend: just web-dev"
67
68# Run all tests (backend + frontend)
69test-all: test web-test
70
71# Run database migrations
72migrate:
73 cargo run --bin malfestio-cli migrate
74
75# Test handle and DID resolution for a Bluesky account
76verify HANDLE:
77 cargo run --bin malfestio-cli check {{HANDLE}}
78
79# Clean build artifacts
80clean:
81 cargo clean
82 cd web && rm -rf dist node_modules/.vite
83
84push:
85 git push origin main && git push alpha main