basic shape

This commit is contained in:
2025-08-06 23:29:55 -04:00
parent 3891e8b85b
commit 839d596b55
46 changed files with 220 additions and 5507 deletions

2
packages/server/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
# deps
node_modules/

11
packages/server/README.md Normal file
View File

@@ -0,0 +1,11 @@
To install dependencies:
```sh
bun install
```
To run:
```sh
bun run dev
```
open http://localhost:3000

View File

@@ -0,0 +1,18 @@
{
"name": "server",
"scripts": {
"dev": "bun run --hot src/index.ts",
"start": "bun run src/index.ts",
"dbstudio": "pnpm dlx prisma studio --browser none",
"dbdeploy": "pnpm dlx prisma migrate deploy",
"dbsync": "concurrently 'pnpm dlx prisma generate' 'pnpm dlx prisma migrate dev'"
},
"dependencies": {
"hono": "^4.8.12",
"@prisma/client": "6.13.0"
},
"devDependencies": {
"@types/bun": "latest",
"prisma": "6.13.0"
}
}

View File

@@ -0,0 +1,10 @@
import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => {
return c.text("Hello Hono!");
});
console.log("server running");
export default app;

View File

@@ -0,0 +1,7 @@
{
"compilerOptions": {
"strict": true,
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx"
}
}