Skip to content

follow up to graphql-basics repo, from the same udemy course. adds tokens, auth, filtering, sorting, pagination, etc.

Notifications You must be signed in to change notification settings

rgordon95/graphql-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Basics

This repo was made to explore graphQL with node and apollo following along with this udemy course

Check out the production deployment: production playground

Getting Started

prerequisites:

  • Node v8+ / NPM

Install

  1. Download required dependencies:
  2. Configure Heroku (or other host site)
  3. Run $ npm install
  4. Run $ npm run dev
  5. Visit graphql playground to run queries
  6. Connect to frontend

OR

production playground

Run In development (local)

npm run prisma-deploy-dev

Run in development (remote)

Push to production (after initial authentication)

git status

git add .

git commit -m "commit message here"

heroku push main

npm run prisma-deploy-prod

Dependency Notes

  • graphql-yoga - for running the server
  • graphql-cli - for running common graphql commands from the command line
  • prisma - for managing database queries in accordance with schema (ORM+)
  • Docker - for deployment with heroku
  • Heroku - hosting the database and server
  • Nodemon - for server refresh on file change during development
  • babel[plugins] - for TS/ES7+ etc.
  • bcrypt - for password hashing
  • env cmd - for environment path mapping
  • jest - mock testing framework
  • jwt - for tokens
  • uuid - for random id generation

About

follow up to graphql-basics repo, from the same udemy course. adds tokens, auth, filtering, sorting, pagination, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published