PDS software with bells & whistles you didn’t even know you needed. will move this to its own account when ready.
tranquil.farm
oauth
atproto
pds
rust
postgresql
objectstorage
fun
1default:
2 @just --list
3
4run:
5 cargo run
6run-release:
7 cargo run --release
8build:
9 cargo build
10build-release:
11 cargo build --release
12check:
13 cargo check
14clippy:
15 cargo clippy -- -D warnings
16fmt:
17 cargo fmt
18fmt-check:
19 cargo fmt -- --check
20lint: fmt-check clippy
21
22test-unit:
23 SQLX_OFFLINE=true cargo test --test dpop_unit --test validation_edge_cases --test scope_edge_cases
24
25test-auth:
26 ./scripts/run-tests.sh --test oauth --test oauth_lifecycle --test oauth_scopes --test oauth_security --test oauth_client_metadata --test jwt_security --test session_management --test change_password --test password_reset
27
28test-admin:
29 ./scripts/run-tests.sh --test admin_email --test admin_invite --test admin_moderation --test admin_search --test admin_stats
30
31test-sync:
32 ./scripts/run-tests.sh --test sync_repo --test sync_blob --test sync_conformance --test sync_deprecated --test firehose_validation
33
34test-repo:
35 ./scripts/run-tests.sh --test repo_batch --test repo_blob --test record_validation --test lifecycle_record
36
37test-identity:
38 ./scripts/run-tests.sh --test identity --test did_web --test plc_migration --test plc_operations --test plc_validation
39
40test-account:
41 ./scripts/run-tests.sh --test lifecycle_session --test delete_account --test invite --test email_update --test account_notifications
42
43test-security:
44 ./scripts/run-tests.sh --test security_fixes --test banned_words --test rate_limit --test moderation
45
46test-import:
47 ./scripts/run-tests.sh --test import_verification --test import_with_verification
48
49test-misc:
50 ./scripts/run-tests.sh --test actor --test commit_signing --test image_processing --test lifecycle_social --test notifications --test server --test signing_key --test verify_live_commit
51
52test *args:
53 @just test-unit
54 ./scripts/run-tests.sh {{args}}
55
56test-one name:
57 ./scripts/run-tests.sh --test {{name}}
58
59infra-start:
60 ./scripts/test-infra.sh start
61infra-stop:
62 ./scripts/test-infra.sh stop
63infra-status:
64 ./scripts/test-infra.sh status
65
66clean:
67 cargo clean
68doc:
69 cargo doc --open
70db-create:
71 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database create
72db-migrate:
73 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx migrate run
74db-reset:
75 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database drop -y
76 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx database create
77 DATABASE_URL="postgres://postgres:postgres@localhost:5432/pds" sqlx migrate run
78podman-up:
79 podman compose up -d
80podman-down:
81 podman compose down
82podman-logs:
83 podman compose logs -f
84podman-build:
85 podman compose build
86
87frontend-dev:
88 . ~/.deno/env && cd frontend && deno task dev
89frontend-build:
90 . ~/.deno/env && cd frontend && deno task build
91frontend-check:
92 . ~/.deno/env && cd frontend && deno task check
93frontend-clean:
94 rm -rf frontend/dist frontend/node_modules
95
96frontend-test *args:
97 . ~/.deno/env && cd frontend && VITEST=true deno task test:run {{args}}
98frontend-test-watch:
99 . ~/.deno/env && cd frontend && VITEST=true deno task test:watch
100frontend-test-ui:
101 . ~/.deno/env && cd frontend && VITEST=true deno task test:ui
102frontend-test-coverage:
103 . ~/.deno/env && cd frontend && VITEST=true deno task test:run --coverage
104
105build-all: frontend-build build