https://github.com/azgaar/pizza-graphql
Demo pizza React + GraphQL app
https://github.com/azgaar/pizza-graphql
apollo-client graphql pizza reactjs yoga-graphql
Last synced: 2 months ago
JSON representation
Demo pizza React + GraphQL app
- Host: GitHub
- URL: https://github.com/azgaar/pizza-graphql
- Owner: Azgaar
- Created: 2021-10-29T22:33:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T09:30:58.000Z (over 2 years ago)
- Last Synced: 2025-02-01T02:30:55.113Z (4 months ago)
- Topics: apollo-client, graphql, pizza, reactjs, yoga-graphql
- Language: TypeScript
- Homepage: https://pizza-graphql.netlify.app
- Size: 2.7 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pizza GraphQL
Simple pizza [GraphQL](https://graphql.org/) monorepo application. The deployed client is available on [pizza-graphql.netlify.app](https://pizza-graphql.netlify.app/). GraphQL server is deployed to [pizza-graphql.vercel.app/graphql](https://pizza-graphql.vercel.app/graphql).
Client:
- [TypeScript](https://www.typescriptlang.org/)
- [React](https://facebook.github.io/create-react-app/)
- [Apollo Client](https://www.apollographql.com/docs/react/)GraphQL Server:
- [Express](https://expressjs.com)
- [Graphql-yoga](https://github.com/dotansimha/graphql-yoga)
- [Graphql-tools/schema](https://www.npmjs.com/package/@graphql-tools/schema)

## 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
```