https://github.com/nicksp/rest-api-starter
Production-grade REST API starter template
https://github.com/nicksp/rest-api-starter
docker-compose drizzle-orm fully-typed hono openapi postgresql scalar
Last synced: about 1 month ago
JSON representation
Production-grade REST API starter template
- Host: GitHub
- URL: https://github.com/nicksp/rest-api-starter
- Owner: nicksp
- License: mit
- Created: 2025-01-25T22:24:05.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T02:55:49.000Z (3 months ago)
- Last Synced: 2025-02-03T03:28:13.637Z (3 months ago)
- Topics: docker-compose, drizzle-orm, fully-typed, hono, openapi, postgresql, scalar
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hono OpenAPI Starter Template
This is a starter template for building production-grade applications using Hono, OpenAPI, and Drizzle.
## Features
- [x] Structured logging
- [x] Documented type-safe routes
- [x] Interactive API documentation
- [x] Docker setup
- [x] Type-safe schemas and environment variables
- [x] Single source of truth database schemas
- [x] Database migrations and seeders
- [x] Testing
- [x] Linting and formatting rules
- [ ] Health checks
- [ ] CI/CD pipeline
- [ ] Metrics
- [ ] Error tracking
- [ ] Debugging## Tech Stack
- Node.js
- Hono
- Drizzle
- Postgres
- TypeScript
- Docker
- Scalar
- pino
- zod
- Vitest
- Prometheus
- Grafana
- Dozzle## Getting Started
Create `.env` file:
```sh
cp .env.example .env
```Install dependencies:
```sh
pnpm install
```Run DB server and push the schema:
```sh
pnpm dev:docker
pnpm db:push
```## Running Locally
Run the app:
```sh
pnpm dev
```You can now access API documentation at .