Getting Started
Requirements
Section titled “Requirements”- Bun
v1.0+
Create a New Project
Section titled “Create a New Project”bun create gaman@latestThis 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.jsonManual Installation
Section titled “Manual Installation”If you want to add GamanJS to an existing project:
bun add gaman @gaman/michiRunning the Server
Section titled “Running the Server”bun run devOutput:
GamanJS Framework v2A Lean Framework for Heavy-Duty Enterprise Performance. ──────────────────────────────────────HTTP : Listening at http://localhost:3431 ──────────────────────────────────────Orchestration complete. Ready for requests.What’s Next
Section titled “What’s Next”- Bootstrap — Configuration and starting the server
- Router — Defining routes
- Controller — Separating handler logic