create-quickbase
Version:
A CLI tool to create a Hono backend with Prisma and PostgreSQL
33 lines (25 loc) • 928 B
Markdown
A modern TypeScript backend template using Hono.js for routing, Prisma for database operations, and Zod for validation.
```
npx create-quickbase
```
```
src/
├── index.ts
├── routes/
│ └── v1.ts
├── controllers/
│ └── [controller].ts
├── middleware/
│ └── userAuth.ts
└── prisma/
└── schema.prisma
```
1. Always validate request data using Zod schemas
2. Keep controllers focused on business logic
3. Use Prisma for all database operations
4. Maintain API versioning for backwards compatibility
5. Write clear error messages and use proper status codes