Skip to content

bossrodcommunity/my-auth-session-based

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Hono Prisma Kysely by bossROD

Description

This is a 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

Clone

Choose the approach that best fits your needs:

1. Standard 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 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

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors