Skip to content
/ bun-elysia Public template

Type-safe API server using Bun, Elysia and Swagger.

Notifications You must be signed in to change notification settings

nicholashamilton/bun-elysia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun + Elysia - API Server

Development

To start the development server run:

bun run dev

Prisma - Postgres

Set up a database using docker

docker run -p 5432:5432 -e POSTGRES_PASSWORD=12345678 -d postgres

Update .env

DATABASE_URL='postgresql://postgres:12345678@localhost:5432/db?schema=public'

Sync database with Prisma schema

bunx prisma migrate dev --name init

Swagger Plugin

Endpoints generated from Elysia server: /api/v1/docs.

About

Type-safe API server using Bun, Elysia and Swagger.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published