Skip to content

Getting Started

Terminal window
bun create gaman@latest

This will generate a new project with the following structure:

my-app/
├── src/
│ ├── index.ts # Entry point & bootstrap
│ ├── router.ts # Route definitions
│ └── module/
│ ├── controllers/
│ │ └── AppController.ts # Example controller
│ ├── services/
│ │ └── AppService.ts # Example service
│ └── middlewares/
│ └── AppMiddleware.ts # Example middleware
├── package.json
└── tsconfig.json

If you want to add GamanJS to an existing project:

Terminal window
bun add gaman @gaman/michi
Terminal window
bun run dev

Output:

GamanJS Framework v2
A Lean Framework for Heavy-Duty Enterprise Performance.
──────────────────────────────────────
HTTP : Listening at http://localhost:3431
──────────────────────────────────────
Orchestration complete. Ready for requests.