1.1.2 • Published 5 months ago
create-quickbase v1.1.2
QuickBase - Hono + Prisma + Zod Backend Template
A modern TypeScript backend template using Hono.js for routing, Prisma for database operations, and Zod for validation.
Setup
npx create-quickbase
Project Structure
src/
├── index.ts # Entry point
├── routes/
│ └── v1.ts # API routes for version 1
├── controllers/ # Logic for routes
│ └── [controller].ts # Controller classes
├── middleware/ # Custom middleware
│ └── userAuth.ts # User authentication middleware
└── prisma/
└── schema.prisma # Prisma schema
Best Practices
- Always validate request data using Zod schemas
- Keep controllers focused on business logic
- Use Prisma for all database operations
- Maintain API versioning for backwards compatibility
- Write clear error messages and use proper status codes