# candy-deno-kit-bun **Repository Path**: candyjs/candy-deno-kit-bun ## Basic Information - **Project Name**: candy-deno-kit-bun - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-01 - **Last Updated**: 2025-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## @candy/kit-bun A Bun runtime kit for candyframework ## Usage ``` import type HttpRequest from '@candy/framework/http/HttpRequest'; import Application from '@candy/framework/rest/Application'; import HttpResponse from '@candy/framework/http/HttpResponse'; // Delete this line and replace to @candy/kit-bun // import Main from '@candy/framework'; import Main from '@candy/kit-bun' const app = new Application({ id: 'rest', debug: true, }); app.get('/', async (_request: HttpRequest) => { return HttpResponse.fromText('Hello, world!'); }); app.get('/user/{id}', async (_request: HttpRequest, parameters: any) => { return HttpResponse.fromText('User ' + parameters.id); }); const main = new Main(app); main.listen({ port: 2333, }); ```