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│ └── modules/│ └── app/│ ├── controllers/│ │ └── AppController.ts # Example controller│ ├── services/│ │ └── AppService.ts # Example service│ ├── middlewares/│ │ └── AppMiddleware.ts # Example middleware│ └── AppRoutes.ts # Route definitions├── 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 src/index.tsOutput:
GamanJS Framework v2The Universal Transport Layer for Your Logic. ──────────────────────────────────────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