Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viktorstrate/prisma-server-docker
A boilerplate, for running Prisma behind a graphql endpoint, inside Docker
https://github.com/viktorstrate/prisma-server-docker
boilerplate docker graphql prisma
Last synced: 3 months ago
JSON representation
A boilerplate, for running Prisma behind a graphql endpoint, inside Docker
- Host: GitHub
- URL: https://github.com/viktorstrate/prisma-server-docker
- Owner: viktorstrate
- License: unlicense
- Created: 2018-08-28T19:39:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T20:01:56.000Z (over 6 years ago)
- Last Synced: 2024-05-01T15:23:41.952Z (9 months ago)
- Topics: boilerplate, docker, graphql, prisma
- Language: Shell
- Homepage:
- Size: 41 KB
- Stars: 27
- Watchers: 2
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prisma Server Docker
> This repository is a boilerplate, for running a Prisma server behind a GraphQL endpoint for production.
## Featuers
- Automatically reload project, and regenerate `src/generated/prisma.graphql`, on file changes
- Open and flexible when running in a development environment
- Secure and stripped down when building for production
## Running the docker containers
### Development
To start the server in development mode, run `yarn start`, afterwards both GraphQL endpoints can be accessed at [http://localhost:3000/playground](http://localhost:3000/playground).
### Production
To start the server in production mode, run `yarn serve`, afterwards only the secure endpoint will be exposed, and can be accessed at [http://localhost:4000/](http://localhost:4000/).
To stop the server, run `docker-compose down` inside the root directory of the project.