https://github.com/anthonyshort/graphql-training
Deploy a simple GraphQL server using Now
https://github.com/anthonyshort/graphql-training
Last synced: about 2 months ago
JSON representation
Deploy a simple GraphQL server using Now
- Host: GitHub
- URL: https://github.com/anthonyshort/graphql-training
- Owner: anthonyshort
- Created: 2019-11-05T04:36:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T20:01:05.000Z (over 5 years ago)
- Last Synced: 2025-01-30T21:29:53.534Z (3 months ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-training
Learn the basics of GraphQL by deploying a simple GraphQL serverless function.
## Getting started
Install `now`. We'll be using this for deployment.
```
yarn global add now
```You'll need to create an account. You can do this on [zeit.co](https://zeit.co/).
## Development
Even though we're building a serverless function, we want to be able to serve this locally so we can hit it at `http://localhost:3000`. To run the local server by running:
```
yarn install
```Then:
```
now dev
```## Deployment
Simply run:
```
now
```And visit the URL provided, e.g. `https://graphql-training.now.sh/`