Getting Started
Requirements
- Rust (stable) — install via rustup
Install the CLI
cargo install oxide-cli --registry com7-innovationSee Internal Registry for one-time kellnr setup (token + cargo config) if you haven’t done it yet.
Confirm:
oxide --versionCreate a project
-
Scaffold
Terminal window oxide new billing-apicd billing-apioxide newsupports--branch <name>,--tag <version>, and--rev <sha>for pinning the framework version. Default isbranch = "main". -
Wire environment
Terminal window cp .env.example .envEdit
.env— setDB_CONNECTION, DB credentials, andAPP_LISTENas needed. -
Run migrations
Terminal window oxide migrate -
Start the server
Terminal window oxide serveDefault address is
127.0.0.1:8000. Hithttp://localhost:8000/api/v1/healthto confirm.
What’s next
- Add authentication: enable the
oxide-authdep, then wire aUserentity and runoxide vendor:publish sanctum. - Write your first migration and entity.
- Add your first controller and routes.