evc54 / bun-prisma-gql-yoga

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:TypeScript 90.6%Language:HTML 5.3%Language:CSS 3.0%Language:JavaScript 1.1%