Build Your First Application
This path uses SQLite so the first request needs no database container or AWS account. It still uses the same contract, application, adapter, HTTP, and evidence boundaries as a larger deployment.
1. Generate the project
cargo minco new hello-minco --database sqlite
cd hello-minco
cp .env.example .envThe generator creates ordinary Rust, TOML, SQL, and OpenAPI source. Domain and application crates remain independent of Axum, SQLx, Lambda, and AWS SDKs.
2. Inspect before running
cargo minco doctor
cargo minco contract check
cargo minco inspect --jsoninspect projects the application graph across five planes: contract, code, capabilities, resources, and evidence. Use explain when you need the complete trace for one OpenAPI operation:
cargo minco explain getPlatform --json3. Review the local plan
cargo minco dev --profile sqlite --dry-run --jsonThe plan shows the selected services, lifecycle stages, processes, ports, and readiness probes. A dry run starts nothing.
4. Start the application
cargo minco dev --profile sqliteIn another terminal, exercise the health contract:
curl --fail --silent http://127.0.0.1:3000/health/live
curl --fail --silent http://127.0.0.1:3000/health/readyCtrl-C stops the supervised process group. It does not silently reset durable data.
5. Add a resource deliberately
Preview the generated vertical slice before writing files:
cargo minco make resource widget --dry-run --jsonThen follow the required order:
- define OpenAPI requests, responses, security, examples, and Problem bodies;
- sync deterministic bindings;
- write a failing application test with fake ports;
- implement domain rules and one use case;
- add a persistence adapter only when needed;
- test the Axum boundary with an in-process router;
- inspect resource, IAM, cost, and wake implications.
The resource API guide supplies the standard create, list, read, update, and delete shapes without introducing a generic repository or ORM.
6. Run the local gates
cargo minco test unit
cargo minco test feature
cargo minco check --with-cargoLocal success is not deployment proof. Packaging, hosted CI, provider-backed verification, promotion, and production observation remain separate evidence.
Continue with the framework tour, the feature catalog, or the Orders recipe.