Create a Project
Run the official project creation command:
pnpm create routa-ts@latestBy default, the scaffolder creates a TypeScript Routa app with route examples, Biome configuration, OpenAPI baseline files, and scripts for checking, building, and running the API.
What It Creates
Section titled “What It Creates”- TypeScript app structure
- Routa route examples
- Biome configuration
- Scripts for checking and building the API
- OpenAPI baseline and generated metadata files
After Creation
Section titled “After Creation”-
Enter the project directory.
Terminal window cd routa-app -
Install dependencies if you did not pass
--install.Terminal window pnpm install -
Run the development server.
Terminal window pnpm dev
Generated apps follow this shape:
- biome.json
Directorysrc/
- routa.ts
Directoryroutes/
Directorystatus/
- route.ts
- schemas.ts
Directory.routa/
- manifest.json
- openapi-baseline.json
- routes.gen.ts
- openapi.yaml
- package.json
- tsconfig.json
Use the generated routes as the starting point for your HTTP contract.