https://github.com/zesty-io/graphql-zesty
Run a local (or remote) Apollo GraphQL server that taps into your Zesty.io Content Instance
https://github.com/zesty-io/graphql-zesty
cms graphql headless zesty-io
Last synced: 2 months ago
JSON representation
Run a local (or remote) Apollo GraphQL server that taps into your Zesty.io Content Instance
- Host: GitHub
- URL: https://github.com/zesty-io/graphql-zesty
- Owner: zesty-io
- License: mit
- Created: 2019-05-23T23:38:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T18:11:46.000Z (over 3 years ago)
- Last Synced: 2025-06-15T19:48:09.509Z (about 1 year ago)
- Topics: cms, graphql, headless, zesty-io
- Language: JavaScript
- Homepage: https://zestygql-m3rbwjxm5q-uc.a.run.app
- Size: 247 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## GraphQL for Zesty.io Content Instances
A GraphQL interface using node and apollo that consumes WebEngine endpoints.
# How to Use and run locally
Requires Node 14 or above and NPM 7+ Fork this repository and pull it to your local.
1. Log into Zesty.io
2. Open the manager interface for the instance you want to access GraphQL
3. In manager, Go to the settings app
4. Navigate to General Settings
5. Turn on WebEngine mode to Hybrid (headless if you do not serve a website via webengine)
6. Set GraphQL origin to * (this can later be tied to your remote)
7. Open this repo's directory in your terminal
8. run `npm install`
9. cli: `npm run setup -- https://YOUR.INSTANCE.URL` (use your stage [HASH]-dev.webengine.zesty.io url for testing)
10. cli: `npm start`
11. navigate in browser `[localhost:4000](http://localhost:4000/)`
# Example Deploy to GCP
See package.json `npm run build` and `npm run deploy` scripts for an example of how to deploy to Google Cloud Run in 2 commands. Not the `zesty-dev` is a place holder envirnoment project name for GCP, you will need to replace that with your own.
# Docker File
The `Dockerfile` is a simple docker container to run and deploy the service locally. Use that file to delpoy this service to other cloud services.