Skip to content

bcrumbs/prisma-todo-server

Repository files navigation

Prisma todo server

This Prisma server was created for Booben demo app. It includes basic authorisation and todo app schema.

Get started

Deploy and run on docker:

# run prisma-todo on Docker
docker-compose up -d prisma mysql
docker-compose up -d prisma-todo

or run manual:

Prerequisites

You'll need node version ^8.6.0 to run the server.

1. Install the Prisma CLI

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

2. Download the example & install dependencies

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-server

Next, navigate into the downloaded folder and install the NPM dependencies:

cd prisma-todo-server
yarn install

3. Deploy the Prisma database service

You 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 deploy

If you don't have Docker installed on your machine, follow this link to deploy your service to a demo server.

4. Explore the API

To start the server, run the following command

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.

Open a Playground

You can either start the desktop app via

yarn playground

Or you can open a Playground by navigating to http://localhost:4000 in your browser.

About

Graphql server, created with Prisma, provides demo todo app schema.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors