No description
Find a file
Siwat Sirichai a767dc3635 feat: restructure backend with Elysia framework and add MQTT adapter
- Updated .gitignore to exclude generated files and database
- Modified package.json to change dev script and add new dependencies
- Removed src/index.ts and created app.ts for Elysia server initialization
- Added environment variable configuration in config/env.ts
- Implemented MQTT adapter in adapter/mqtt.ts for message handling
- Created Prisma client in prisma/client.ts and defined schema in prisma/schema.prisma
- Added seeding script in prisma/seed.ts for measurement points
- Established logging utility in utils/logger.ts for structured logging
- Created bed router in routes/bed.ts for handling bed-related routes
2025-06-21 18:24:54 +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: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +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: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
bun.lock feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +07:00
package.json feat: restructure backend with Elysia framework and add MQTT adapter 2025-06-21 18:24:54 +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.