Skip to content

Repository containing REST and GraphQL API implementation

Notifications You must be signed in to change notification settings

GusMartins499/prisma-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple implementation of two API's usign Prisma.io

✨ Technologies

🚀 Running

  • Clone this repository
  • Install all dependencies using yarn or npm install
  • Create your own .env file using the .env.example template
  • Run all migrations using yarn prisma migrate dev or npx prisma migrate dev
  • May be necessary run yarn prisma generate or npx prisma generate
  • Start the server with yarn dev or npm dev

🚀 Choose your environment

  • If you want Rest: git checkout rest-api
  • If you want GraphQL: git checkout graphql-api
  • If you just write queries: git checkout master and write your own queries in server.ts

🔥 Import endpoints

Run in Insomnia}

About

Repository containing REST and GraphQL API implementation

Resources

Stars

Watchers

Forks