Initial commit: full-stack Bun + Elysia + React template

Elysia.js API with session-based auth (email/password + Google OAuth),
role system (USER/ADMIN/SUPER_ADMIN), Prisma + PostgreSQL, React 19
with Mantine UI, TanStack Router, dark theme, and comprehensive test
suite (unit, integration, E2E with Lightpanda).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
bipproduction
2026-04-01 10:12:19 +08:00
commit 08a1054e3c
57 changed files with 3732 additions and 0 deletions

51
package.json Normal file
View File

@@ -0,0 +1,51 @@
{
"name": "bun-react-template",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "bun --watch src/serve.ts",
"build": "vite build",
"start": "NODE_ENV=production bun src/index.tsx",
"typecheck": "tsc --noEmit",
"test": "bun test",
"test:unit": "bun test tests/unit",
"test:integration": "bun test tests/integration",
"test:e2e": "bun test tests/e2e",
"lint": "biome check src/",
"lint:fix": "biome check --write src/",
"db:migrate": "bunx prisma migrate dev",
"db:seed": "bun run prisma/seed.ts",
"db:studio": "bunx prisma studio",
"db:generate": "bunx prisma generate",
"db:push": "bunx prisma db push"
},
"dependencies": {
"@elysiajs/cors": "^1.4.1",
"@elysiajs/html": "^1.4.0",
"@mantine/core": "^8.3.18",
"@mantine/hooks": "^8.3.18",
"@prisma/client": "6",
"@tanstack/react-query": "^5.95.2",
"@tanstack/react-router": "^1.168.10",
"elysia": "^1.4.28",
"postcss": "^8.5.8",
"postcss-preset-mantine": "^1.18.0",
"postcss-simple-vars": "^7.0.1",
"react": "^19",
"react-dom": "^19",
"react-icons": "^5.6.0"
},
"devDependencies": {
"@biomejs/biome": "^2.4.10",
"@tanstack/router-vite-plugin": "^1.166.27",
"@types/bun": "latest",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^6.0.1",
"prisma": "6",
"puppeteer-core": "^24.40.0",
"typescript": "^6.0.2",
"vite": "^8.0.3"
}
}