项目作者: Fairbanks-io

项目描述 :
Express GraphQL Server
高级语言: JavaScript
项目地址: git://github.com/Fairbanks-io/ExpressGQL.git
创建时间: 2019-02-20T19:32:17Z
项目社区:https://github.com/Fairbanks-io/ExpressGQL

开源协议:MIT License

下载


ExpressGQL

ExpressGQL

Express GraphQL Server with Lusca and DDoS Rate Limiting

Prerequisites

  • Node v8+
  • Yarn (prefered) or NPM
  • Port 8888 Open and Accessible

Quick Start

  • Fetch the code using git or wget
  • While in the app directory, yarn or npm install to setup
  • Once complete, yarn start or npm start to launch the server
  • Navigate to :8888 in your browser to query using GraphiQL

[Optional] To keep ExpressGQL up and running behind the scenes, checkout PM2.

Config Options

The following options can be passed in at runtime as ENV variables:

  • SESSION_SECRET: Either a string or array of secrets used to sign the session ID cookie (If array: first is used to sign, others are used to verify)
  • LOGGING: If true, a graphql.log will be created for incoming site requests using Morgan logging
  • RATE_LIMIT: If true, enables DDoS and RateLimit protections through Express
  • PORT: If set, an alternate port will be used when starting ExpressHTTP. Otherwise, the default of 8888 will be used.