0.0.1 • Published 6 years ago
ixl-omnicron-apollo-server v0.0.1
ixl-omnicron-apollo-server
This is a simple server brining together modules for WCS and OMS to support the omnicron use-cases
Installation
npm install
Run
npm run start
Lint testing (ESLint)
npm run test:lint
Format testing (Prettier)
npm run test:format
Build this on docker on your local machine
docker build -t uk.icr.io/ix-liberty/ixl-omnicron-apollo-server --build-arg NPM_TOKEN=<TOKEN> .
Run in this on docker on your local machine
run this command
docker run -p 4002:4002 uk.icr.io/ix-liberty/ixl-omnicron-apollo-server
Push to image registry
docker push uk.icr.io/ix-liberty/ixl-omnicron-apollo-server
Test in browser
open a browser and go to the following uri
and within the browser run this command
query{hello}
Test with curl
If you want to test this service works in curl, run this command
curl 'http://localhost:4003/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:4003' --data-binary '{"query":"query{hello2}# Write your query or mutation here\n"}' --compressed
0.0.1
6 years ago