feat: Initialized project

This commit is contained in:
2024-09-21 13:28:02 +07:00
parent e06ca3e703
commit a765e598ba
32 changed files with 1349 additions and 0 deletions

17
apps/backend/src/index.ts Normal file
View File

@@ -0,0 +1,17 @@
import { Elysia } from "elysia";
import { swagger } from "@elysiajs/swagger";
import { db } from "@minikura/db";
const app = new Elysia()
.use(swagger())
.get("/", async () => {
return "Hello Elysia";
})
.get("/hello", "Do you miss me?")
.listen(3000, async () => {
console.log("Server is running on port 3000");
const result = await db.query.server.findMany();
console.log(result);
});
export type App = typeof app;