Express GraphQL Server
Express GraphQL Server with Lusca and DDoS Rate Limiting
yarn
or npm install
to setupyarn start
or npm start
to launch the server[Optional] To keep ExpressGQL up and running behind the scenes, checkout PM2.
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 loggingRATE_LIMIT
: If true, enables DDoS and RateLimit protections through ExpressPORT
: If set, an alternate port will be used when starting ExpressHTTP. Otherwise, the default of 8888 will be used.