Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.54 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.54 KB

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