Skip to content

How to start to using Bun, Elysia, Prisma, GraphQL Yoga and Type-GraphQL, and don't freak out

License

Notifications You must be signed in to change notification settings

evc54/bun-prisma-gql-yoga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun, Prisma, Elysia, GraphQL Yoga and Type-GraphQL example

To install Bun:

curl -fsSL https://bun.sh/install | bash

To install dependencies:

bun install

Create env file:

cp env.template .env

Adjust it if you need.

Migrate a database:

bunx prisma migrate dev

Backend

To run:

cd backend
bun run serve

With hot reloading:

cd backend
bun run serve:watch

Frontend

To run in dev mode:

cd frontend
bun run dev

API

Example application exposes one query and two mutations.

You can sign up, sign in and query a list of users.

User's list is protected from unauthorized access.

Using API

Use Postman collection in the docs folder to test the API.