adnrs96 / graphql

graphql api for storyscript

Home Page:https://api.storyscript.io/graphiql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storyscript GraphQL server

We use postgraphile on top of express

Development

# install the dependencies
yarn

# watch ts changes and start the server
yarn watch

# transpile to es6
yarn build

# start the previous build
yarn start

Production

# install the dependencies
yarn install --production

# build
yarn build

# run
yarn start

Docker

# to build
docker build -t storyscript/graphql .

# to run
docker run \
    -p 3000:3000 \
    -e PORT=3000 \
    -e DATABASE_URL=postgresql://asyncy_authenticator:PLEASE_CHANGE_ME@localhost:5432/storyscript \
    -e JWT_VERIFICATION_KEY=secret \
    -e WHITELIST_DOMAINS_REGEXP="^http[s]*:\/\/([\w\-\.]*)localhost(:[38]0([0-9][0-9])?)?$" \
    --name storyscript_graphql \
    -d storyscript/graphql

About

graphql api for storyscript

https://api.storyscript.io/graphiql

License:Apache License 2.0


Languages

Language:TypeScript 90.9%Language:JavaScript 5.1%Language:Shell 2.5%Language:Dockerfile 1.6%