RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
866 B

  1. set dotenv-load := false
  2. set ignore-comments := true
  3. default:
  4. @just --list
  5. # Run the Axum API (reads config/ + APP_ENV).
  6. server:
  7. APP_ENV=${APP_ENV:-development} cargo run -p server
  8. # Vite dev server. Proxy target is read from config/*.toml.
  9. web:
  10. cd apps/web && npm install && npm run dev
  11. # Export OpenAPI from the Axum router and regenerate the typed Vue client.
  12. generate-api:
  13. cargo run -p server --bin export-openapi
  14. node scripts/generate-api.mjs
  15. # Postgres for local smoke tests.
  16. db-up:
  17. docker compose -f infra/compose/docker-compose.yml up -d postgres
  18. db-down:
  19. docker compose -f infra/compose/docker-compose.yml down
  20. # Format + clippy + frontend typecheck.
  21. check:
  22. cargo fmt --all -- --check
  23. cargo clippy -p server --all-targets -- -D warnings
  24. cargo test -p server
  25. cd apps/web && npm install && npm run typecheck