Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonaco/serverless-graphql-workshop
GraphQL and Serverless workshop
https://github.com/simonaco/serverless-graphql-workshop
azure azure-functions graphql serverless
Last synced: 17 days ago
JSON representation
GraphQL and Serverless workshop
- Host: GitHub
- URL: https://github.com/simonaco/serverless-graphql-workshop
- Owner: simonaco
- License: mit
- Created: 2018-11-07T07:41:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T05:02:21.000Z (over 3 years ago)
- Last Synced: 2024-10-11T12:52:48.204Z (about 1 month ago)
- Topics: azure, azure-functions, graphql, serverless
- Language: HTML
- Homepage:
- Size: 40 KB
- Stars: 72
- Watchers: 8
- Forks: 54
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serverless-graphql-workshop
In this workshop we'll build a Serverless GraphQL endpoint for an existing voting API.
## slides
[Build Scalable APIs Using GraphQL and Serverless](https://www.slideshare.net/SimonaCotin/build-scalable-apis-using-graphql-and-serverless-172329195)
## Prerequisites
1. A recent version of [Node](https://nodejs.org/en/download) (8+)
1. [VS Code](https://code.visualstudio.com/download/?WT.mc_id=graphqlworkshop-github-sicotin)
1. [Azure Functions CLI](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=graphqlworkshop-github-sicotin)
1. [Azure Functions Extension for VS Code](https://marketplace.visualstudio.com/items/?WT.mc_id=graphqlworkshop-github-sicotin&itemName=ms-azuretools.vscode-azurefunctions)
1. [Free Azure Account](https://azure.microsoft.com/en-us/free/?wt.mc_id=graphqlworkshop-github-sicotin)
## Steps
1. Create your own services following steps on [services readme](https://github.com/simonaco/serverless-graphql-workshop/blob/master/services/Readme.md)
1. Create GraphQL endpoint following steps on [api readme](https://github.com/simonaco/serverless-graphql-workshop/blob/master/graphql-api/Readme.md)
1. Add GraphiQL UI using steps in [readme](https://github.com/simonaco/serverless-graphql-workshop/blob/master/graphiql/Readme.md)
## Demo app
GraphQL endpoint: [https://graphqlplayground.azurewebsites.net/api/graphql](https://graphqlplayground.azurewebsites.net/api/graphql)
GraphiQL endpoint:
[https://graphqlplayground.azurewebsites.net/api/graphiql](https://graphqlplayground.azurewebsites.net/api/graphiql)Sample query:
```
query {
teams {
id
name
points
}
}
```Sample mutation:
```
mutation {
incrementPoints(id:2) {
id
name
points
}
}
```
---🎉 Congrats!! You made it - built your very first GraphQL endpoint on Serverless! 🎉