https://github.com/noviel/graphql-demo
Fullstack GraphQL Application
https://github.com/noviel/graphql-demo
Last synced: about 1 year ago
JSON representation
Fullstack GraphQL Application
- Host: GitHub
- URL: https://github.com/noviel/graphql-demo
- Owner: Noviel
- Created: 2020-06-07T19:25:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T19:11:04.000Z (over 3 years ago)
- Last Synced: 2025-02-05T02:17:20.516Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://graphql-demo-eta.now.sh
- Size: 1.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fullstack GraphQL Application
[Live demo](https://graphql-demo.dqntio.now.sh/)
## Features
- CRUD GraphQL API server:
- apollo-server + mongoose
- CD to [Heroku](https://heroku.com)
- Client application:
- Next.js, material-ui, apollo libraries
- CD to [Vercel](https://vercel.com/)
- Code quality control:
- linting on commit
- Developer experience:
- types generation from GraphQL schema
- automatic server rebuild and restart
## Requirements
- Node.js
- Yarn
## Environment variables
Client and server are using environment variables to connect to API and database.
For local development or launch these variables can be provided by `packages/client/.env` file for the client and by `packages/server/.env` file for the server.
## Client
Requires `NEXT_PUBLIC_GRAPHQL_URI` environment variable.
Start development server:
```sh
yarn dev:client
```
## Server
Requires `MONGODB_URI` environment variable.
Start development server:
```sh
yarn dev:server
```