Skip to content

HSLdevcom/graphiql-deployment

Repository files navigation

graphiql-deployment Build Status

Deployment for HSL version of GraphiQL. Production deployment available from https://api.digitransit.fi/graphiql/hsl

Start server

VITE_DEV_API_SUBSCRIPTION_KEY=key VITE_API_SUBSCRIPTION_KEY=key VITE_API_SUBSCRIPTION_KEY_PARAM=digitransit-subscription-key yarn start

Environment variables VITE_DEV_API_SUBSCRIPTION_KEY, VITE_API_SUBSCRIPTION_KEY, and VITE_API_SUBSCRIPTION_KEY_PARAM are set in the GraphQL request query string for the authorization gateway service.

Docker

Build

docker build \
    --build-arg VITE_DEV_API_SUBSCRIPTION_KEY=key \
    --build-arg VITE_API_SUBSCRIPTION_KEY=key \
    --build-arg VITE_API_SUBSCRIPTION_KEY_PARAM=digitransit-subscription-key \
    -t graphiql .

Run

docker run -it -p 8099:8080 graphiql

Code formatting

yarn lint