No description
Find a file
Siwat Sirichai 4ae5196ef1 feat: Add Swagger documentation support and restructure routes
- Added @elysiajs/swagger dependency to package.json for API documentation.
- Removed the old bed router and replaced it with a new history router.
- Created a new state router to manage WebSocket connections and state updates.
- Implemented a comprehensive state management system with the StateManager service.
- Introduced AlarmManagement and BedService services for handling alarms and sensor readings.
- Established a new MQTT service for managing MQTT connections and subscriptions.
- Created an AlarmStateStore to manage volatile alerts and their states.
- Defined FrontendState types for structured state management and WebSocket messaging.
2025-06-21 18:56:34 +07:00
adapter feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
config feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
prisma feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
routes feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
services feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
store feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
types feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
utils feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
.env feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
.gitignore feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
app.ts feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
bun.lock feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
package.json feat: Add Swagger documentation support and restructure routes 2025-06-21 18:56:34 +07:00
README.md Initial commit (via bun create) 2025-06-21 18:00:46 +07:00
tsconfig.json feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00

Elysia with Bun runtime

Getting Started

To get started with this template, simply paste this command into your terminal:

bun create elysia ./elysia-example

Development

To start the development server run:

bun run dev

Open http://localhost:3000/ with your browser to see the result.