Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/quramy/prisma-yoga-example
- Owner: Quramy
- License: mit
- Created: 2022-11-29T12:48:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T16:04:36.000Z (10 months ago)
- Last Synced: 2024-04-10T19:51:39.514Z (10 months ago)
- Topics: graphql, graphql-yoga, integration-testing, prisma
- Language: TypeScript
- Homepage:
- Size: 1000 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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