Skip to content

TS-REACT0806/template-hono-prisma-kysely

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Hono Prisma Kysely by bossROD

Description

This is an opinionated, robust template for backend development either for serverless or non-serverless using Node.js or SST (Serverless Stack) with Hono, Prisma, and Kysely. The project includes ESLint, Prettier, Husky, and lint-staged for code quality and consistency. It also features Vitest for testing, Swagger and Scalar for API documentation, and Docker for local database management. The template is set up with TypeScript for type safety and uses pnpm as the package manager.

Rules

  • Please read the repo's Project Structure & Code Organization here README.project-structure.md
  • For the coding standards, please read the rules in this folder rules

Clone

Choose the approach that best fits your needs:

1. Standalone Hono Server

Branch: main For a basic setup using just the Hono server:

npx degit constROD/template-hono-prisma-kysely

2. With SST v2 (AWS Provider)

Branch: with-sst-v2 For a setup integrated with Serverless Stack (SST) v2 - AWS Provider:

npx degit constROD/template-hono-prisma-kysely#with-sst-v2

3. With Wrangler (Cloudflare Provider)

Branch: with-cloudflare For a setup integrated with Wrangler - Cloudflare Provider:

npx degit constROD/template-hono-prisma-kysely#with-cloudflare

4. With JWT Auth

Branch: with-jwt-auth For a setup with JWT authentication:

npx degit constROD/template-hono-prisma-kysely#with-jwt-auth

Choose the command that corresponds to your preferred API layer approach.

Prerequisites

Installation

  • Install dependencies.
pnpm i

Development Mode:

  • Start the database container.
pnpm db:start
  • Stop the database container.
pnpm db:stop
  • Start the development server.
pnpm dev

Production Mode:

  • Build the project.
pnpm build
  • Start the build for production.
pnpm start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • Dockerfile 1.4%
  • Other 0.2%