Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/quramy/prisma-yoga-example

GraphQL server example using Prisma and graphql-yoga
https://github.com/quramy/prisma-yoga-example

graphql graphql-yoga integration-testing prisma

Last synced: 3 months ago
JSON representation

GraphQL server example using Prisma and graphql-yoga

Awesome Lists containing this project

README

        

# Prisma Yoga example

This repository the following examples:

- [Prisma ORM](https://www.prisma.io) using PostgreSQL
- GraphQL API server via [graphql-yoga](https://the-guild.dev/graphql/yoga-server)
- [Code genenerator for typescript-resover](https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-resolvers)
- [DataLoader](https://github.com/graphql/dataloader)
- And Jest test suites integrated to RDB

## Setup

```sh
$ docker compose up
$ npm i
$ cp .env.example .env
```

## Start GraphQL Server

```sh
$ npm run migrate:dev
$ npm run seed
$ npm run dev
$ open http://localhost:4000/graphql
```

## Run test

```sh
$ npm run migrate:test
$ npm test
```

## License

MIT