This is a blueprint for a REST API with Hono.
- 🚀 Hono as web framework with centralized error handling, CORS, security headers, timing and logging middleware
- 🗄️ Drizzle as ORM with a Neon PostgreSQL database
- ✅ Zod for data validation
- 🌍 T3 Env for type-safe environment variables
- 🐳 Docker setup with Bun runtime
- 🧪 Tests with Bun test runner
- To use the pre-configured database driver you need to create a Neon account.
- Copy the
.env.examplefile and rename it to.env, then adapt the values where required.
# start development server
turbo @blueprint/with-hono#dev
# check types
turbo @blueprint/with-hono#typecheck
# execute tests
turbo @blueprint/with-hono#test
# execute tests in watch mode
turbo @blueprint/with-hono#test:watch# check format and lint
turbo @blueprint/with-hono#check
# format files
turbo @blueprint/with-hono#check:fix# generate database migrations
turbo @blueprint/with-hono#db:generate
# apply database migrations
turbo @blueprint/with-hono#db:migrate
# check database migrations
turbo @blueprint/with-hono#db:check
# push database schema
turbo @blueprint/with-hono#db:push
# seed database data
turbo @blueprint/with-hono#db:seed# https://orm.drizzle.team/docs/kit-overview
bunx drizzle-kit [command]