prisma-graphql-server v1.0.5
prisma-graphql-server
GraphQL layer tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB)
Getting Started
yarn add @flavioespinoza/log_log
Local Dev Environment
Clone the repo
git clone https://github.com/flavioespinoza/prisma-graphql.git
Use yarn
to install dependencies,
yarn install
Launch Prisma and the connected database with docker-compose
:
docker-compose up -d
Generate GraphQL type definitions
prisma generate
Deploy Prisma GraphQL Api
prisma deploy
Start local dev server
yarn dev
Local Dev Client
playground: http://localhost:4466/
db_admin: http://localhost:4466/_admin
Prisma
Simplified and TypeScript GraphQL client & server layer.
prisma-client
The Prisma client is an TypeScript auto-generated library that provides type-safe access to your database. It is used as a replacement for traditional ORMs in your API servers or microservice architecure.
nexus-prisma
GraphQL ORM + CRUD schema generator for GraphQL enpoints
Generate CRUD building blocks
npx nexus-prisma-generate --client ./generated/prisma-client --output ./generated/nexus-prisma
prisma-examples
Below are select few ready-to-run examples demonstrating various use cases
Docker TypeScript
Demo | Description |
---|---|
docker-mongodb | Set up Prisma locally with MongoDB |
docker-mysql | Set up Prisma locally with MySQL |
docker-postgres | Set up Prisma locally with PostgreSQL |
Golang
Demo | Description |
---|---|
cli-app | Simple CLI TODO list app |
graphql | Simple GraphQL server |
http-mux | Simple REST API with gorilla/mux |
rest-gin | Simple REST API with Gin |
script | Simple usage of Prisma client in script |
Docker Node.js
Demo | Description |
---|---|
docker-mongodb | Set up Prisma locally with MongoDB |
docker-mysql | Set up Prisma locally with MySQL |
docker-postgres | Set up Prisma locally with PostgreSQL |