Skip to content

Azgaar/pizza-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pizza GraphQL

Simple pizza GraphQL monorepo application. The deployed client is available on pizza-graphql.netlify.app. GraphQL server is deployed to pizza-graphql.vercel.app/graphql.

Client:

GraphQL Server:

main_screen

shopping_card

Requirements

  • NodeJS

Local Installation

Client:

cd client
yarn
yarn start

Go to the client page: localhost:3000

Server:

cd server
npm install
npm run dev

Go to the GraphQL playground: localhost:3001/graphql

Deployment

Client is React (CRA) app. Build the app and deploy to any server and set up the only requred variable:

REACT_APP_GRAPHQL_SERVER = graphql server url

GraphQL server doesn't require build step and can be deployed to any server. Set up CLIENT variable to point to the client URL:

CLIENT = client url