Skip to content

An example of a Bun REST API built with Elysia, Prisma ORM with data proxy and Planetscale

Notifications You must be signed in to change notification settings

pozymasika/bun-prisma-elysia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elysia with Bun runtime

Video walkthrough

https://youtu.be/cpOKHEX9pxY

Prerequisites

Getting Started

To get started, first install the dependencies:

bun install

Then add Database credentials to the .env file:

DATABASE_URL="prisma://<username>:<password>@<host>:<port>/<database>"
SHADOW_DATABASE_URL="mysql://<username>:<password>@<host>:<port>/<database>"

Then run the migration and seed scripts:

bunx prisma migrate dev

Then, run the development server:

bun run dev

Development

To start the development server run:

bun run dev

Open http://localhost:3000/ with your browser to see the result.

About

An example of a Bun REST API built with Elysia, Prisma ORM with data proxy and Planetscale

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published