Giter VIP home page Giter VIP logo

graphql-zesty's Introduction

image

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.

graphql-zesty's People

Contributors

ardeay avatar giseleblair avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.