Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 618 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 618 Bytes

GraphQL backend

Usage (dev)

Install all dependencies

npm install

Run the server

npm start

You can then start querying at localhost:3030/graphql.

Generate a service token

A service token is used to communicate securely between applications.

npm run generate-service-token --silent

⚠️ It requires JWT_SECRET_SESSION_COOKIE environment variable to be set, and to be the same value as the running GraphQL server.

DOTENV_CONFIG_PATH=../.env NODE_OPTIONS="--require dotenv/config" npm run generate-service-token --silent