docs: fix DX for new contributors
- Fix port mismatch: Dockerfile EXPOSE 8000, .env.example PORT=8000, compose.yml gets explicit PORT=8000 - Add thoughts-frontend/.env.example with all required vars - Document NEXT_PUBLIC_FEDIVERSE_DOMAIN in README - Document private cargo registry (k-ap on Gitea) - Add local dev workflow: make dev-infra → cargo run → bun dev - Split make targets: test-unit (no DB), test-integration, up
This commit is contained in:
24
Makefile
24
Makefile
@@ -16,13 +16,33 @@ fmt-check:
|
||||
clippy:
|
||||
cargo clippy -- -D warnings
|
||||
|
||||
# Run the test suite.
|
||||
# Run the full test suite (requires DATABASE_URL).
|
||||
test:
|
||||
cargo test
|
||||
|
||||
# Unit tests only — no database required.
|
||||
test-unit:
|
||||
cargo test -p domain -p application -p api-types -p activitypub
|
||||
|
||||
# Integration tests only — requires DATABASE_URL.
|
||||
test-integration:
|
||||
cargo test -p postgres -p postgres-federation -p postgres-search -p presentation
|
||||
|
||||
# Apply fmt + clippy auto-fixes in one shot.
|
||||
fix:
|
||||
cargo fmt
|
||||
cargo clippy --fix --allow-dirty --allow-staged
|
||||
|
||||
.PHONY: check fmt fmt-check clippy test fix
|
||||
# Start infra (Postgres + NATS) for local development.
|
||||
dev-infra:
|
||||
docker compose up postgres nats -d
|
||||
|
||||
# Stop infra.
|
||||
dev-infra-down:
|
||||
docker compose down
|
||||
|
||||
# Full Docker stack.
|
||||
up:
|
||||
docker compose up --build
|
||||
|
||||
.PHONY: check fmt fmt-check clippy test test-unit test-integration fix dev-infra dev-infra-down up
|
||||
|
||||
Reference in New Issue
Block a user