Skip to content

MARKDOWN SOURCE

Raw
# Project instructions: expense-tracker-api

Build a production-minded expense tracker REST API using Axum, SQLx, and PostgreSQL. Include authenticated user accounts, JWT authentication, CRUD operations for expenses, validation, migrations, and OpenAPI documentation.

## Rules for this project

- This project is independent: keep all source, tests, migrations, and configuration inside `projects/expense-tracker-api`. Do not import or copy code from another showcase.
- Use Rust `1.98.1`, pinned in this directory's `mise.toml`.
- Manage toolchains and external build tools with `mise.toml`. Pin every Rust crate to an exact version (`=x.y.z`) in `Cargo.toml`, commit `Cargo.lock`, and use locked Cargo commands. Mise does not replace Cargo's crate manifest/lockfile.
- Provide `mise run install` and `mise run run` tasks. Add a check task and run Clippy with `all` and `pedantic` enabled; fix warnings rather than suppressing them broadly.
- Do not make the application depend on globally installed helper executables or a container runtime. Declare/pin development tools through mise. PostgreSQL is the requested database service; document how to configure its URL and never embed credentials.
- Include migrations, tests, safe password handling, and a README covering configuration and API use. Keep secrets out of source control.

Project instructions: expense-tracker-api

Build a production-minded expense tracker REST API using Axum, SQLx, and PostgreSQL. Include authenticated user accounts, JWT authentication, CRUD operations for expenses, validation, migrations, and OpenAPI documentation.

Rules for this project

  • This project is independent: keep all source, tests, migrations, and configuration inside projects/expense-tracker-api. Do not import or copy code from another showcase.
  • Use Rust 1.98.1, pinned in this directory's mise.toml.
  • Manage toolchains and external build tools with mise.toml. Pin every Rust crate to an exact version (=x.y.z) in Cargo.toml, commit Cargo.lock, and use locked Cargo commands. Mise does not replace Cargo's crate manifest/lockfile.
  • Provide mise run install and mise run run tasks. Add a check task and run Clippy with all and pedantic enabled; fix warnings rather than suppressing them broadly.
  • Do not make the application depend on globally installed helper executables or a container runtime. Declare/pin development tools through mise. PostgreSQL is the requested database service; document how to configure its URL and never embed credentials.
  • Include migrations, tests, safe password handling, and a README covering configuration and API use. Keep secrets out of source control.