Opinionated bun template for bootstraping a graphql-yoga server with prisma persistence and codegen graphql types.
Frameworks:
- https://the-guild.dev/graphql/yoga-server
- https://the-guild.dev/graphql/codegen
- https://github.com/prisma/prisma
Tools
Install dependencies:
brew install rtx
rtx install bun@latest
Create a new project from the template:
bun create github.com/crumley/yoga-prisma-template ./YOUR_PROJECT
cd YOUR_PROJECT
rtx trust
rtx install
bun install
docker compose up -d
bun prisma migrate dev --name init
bun run src/index.ts
bun test