Quick start
Last updated 2026-10-07
npx create-rhea my-api
cd my-api
npm install
npm run devOpen http://localhost:5000/health:
{ "success": true, "data": { "status": "ok", "uptime": 1.2 }, "message": "Success" }Generate a resource:
npx rhea generate module usersThis creates a controller, service, repository, routes, schema and types for users, adds an integration test, and registers the module in src/modules/index.ts. Try it:
curl -X POST localhost:5000/users -H 'content-type: application/json' -d '{"name":"Ada"}'
curl localhost:5000/usersThen run the checks and the production build:
npm test
npx rhea build
npx rhea start
npx rhea doctor
npx rhea securityrhea start runs dist/server.js with NODE_ENV=production.