This Prisma server was created for Booben demo app. It includes basic authorisation and todo app schema.
# run prisma-todo on Docker
docker-compose up -d prisma mysql
docker-compose up -d prisma-todoYou'll need node version ^8.6.0 to run the server.
The prisma cli is the core component of your development workflow. prisma should be installed as a global dependency, you can install this with npm install -g prisma graphql-cli
Clone the Prisma monorepo and navigate to this directory or download only this example with the following command:
git clone https://github.com/bcrumbs/prisma-todo-serverNext, navigate into the downloaded folder and install the NPM dependencies:
cd prisma-todo-server
yarn installYou can now deploy the Prisma service (note that this requires you to have Docker installed on your machine:
# Ensure docker is running the server's dependencies
docker-compose up -d prisma mysql
# Deploy the server
cd prisma
prisma deployIf you don't have Docker installed on your machine, follow this link to deploy your service to a demo server.
yarn start
The easiest way to explore this deployed service and play with the API generated from the data model is by using the GraphQL Playground.
You can either start the desktop app via
yarn playgroundOr you can open a Playground by navigating to http://localhost:4000 in your browser.