Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nekocode/typescript-graphql-over-prisma
This example demonstrates how to build a GraphQL server over the Prisma.
https://github.com/nekocode/typescript-graphql-over-prisma
backend template
Last synced: about 1 month ago
JSON representation
This example demonstrates how to build a GraphQL server over the Prisma.
- Host: GitHub
- URL: https://github.com/nekocode/typescript-graphql-over-prisma
- Owner: nekocode
- License: apache-2.0
- Created: 2018-09-25T09:48:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T15:29:47.000Z (over 6 years ago)
- Last Synced: 2024-10-29T18:24:03.929Z (3 months ago)
- Topics: backend, template
- Language: TypeScript
- Homepage:
- Size: 197 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This example demonstrates how to build a GraphQL server over [Prisma](https://github.com/prisma/prisma) using TypeScript & [apollo-server](https://github.com/apollographql/apollo-server).
It inlcudes below features:
* An implementation of email-password-based authentication workflow.
* GraphQL over GraphQL/Prisma.
* [Customized GraphQl queries](src/resolvers/Mutation.ts#L36-L50) which base on the resolve info.
## Get started
1. Use [docker-compose](https://docs.docker.com/compose/) to run the prisma server in docker containers:
```sh
docker-compose up -d
```2. Install Node dependencies:
```sh
yarn install
```3. Deploy service to prisma server and then generate the corresponding schema:
```sh
yarn dg
```4. Start the apollo server:
```sh
yarn start
```