Skip to content

Repository with all the code references from my workshop called "GraphQL Academy"

Notifications You must be signed in to change notification settings

LauraBeatris/graphql-academy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Academy

Simple GraphQL API to be used as a guidance from the topics covered on my workshop called "GraphQL Academy"

Technologies

The goal of this workshop is not to suggest/advocate for specific GraphQL libraries, thus don't feel obliged of choosing the same dependencies from this repo as the choices for your project

However, you can find the reasoning behind my choices in this pull request

References by topic

Not every topic from the workshop will be referenced here, but I'll try as much as possible to link implementations so that you can use as a basis for your personal project / challenges proposed on each class

Steps to run API locally

Install dependencies

yarn install

Configure & migrate database

Make sure to have a Postgres database running in order to execute the migration script. Create a .env file based on .env.example and update the variables according to your database configuration.

cp .env.example .env
PORT=3000
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/graphql-basis?schema=public"

Run the migrate-dev script, which will migrate tables defined on Prisma schema and execute a seed script to populate some initial data in order to use the API locally

yarn migrate-dev

`

Start the GraphQL server

yarn dev

About

Repository with all the code references from my workshop called "GraphQL Academy"

Topics

Resources

Stars

Watchers

Forks