Getting Started
Requirements
- Rust (stable) — install via rustup
- An SSH key on your machine with access to the framework’s Bitbucket
repo, so
cargocan fetch it as a git dependency
Install the CLI
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 by publishing the Sanctum stubs:
oxide vendor:publish sanctum, then wire aUserentity. - Write your first migration and entity.
- Add your first controller and routes.