From d1f2c281e2230a0c78cf61c7ba4a3223fcefe989 Mon Sep 17 00:00:00 2001 From: Artjom Kurapov Date: Fri, 11 Dec 2020 13:53:44 +0200 Subject: [PATCH] prettier --- CHANGELOG.md | 2 ++ README.md | 5 ++++- app/config.js | 4 ++-- app/diplomat.js | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ecf7c219..93c0b5dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.0.5] - 2020-12-11 + ### Changed + - Moved credentials from diplomat.js to config.js ## [1.0.4] - 2020-09-14 diff --git a/README.md b/README.md index 384f061a..cf54f91b 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,13 @@ Graphql schema storage as dockerized on-premise service for federated graphql ga Screenshot 2020-08-31 at 15 40 43 ## Roadmap + - client tracking (for breaking changes) - schema usage tracking (for breaking changes) - separate APQs (use cache only) from backend-registered persisted queries (use DB only) ## Installation + Assuming you have [nvm](https://github.com/nvm-sh/nvm) & [docker](https://www.docker.com/) installed: ``` @@ -37,7 +39,8 @@ docker-compose up --build Open http://localhost:6001 ## Configuration -We rely on docker network and uses hostnames from `docker-compose.yml`. + +We rely on docker network and uses hostnames from `docker-compose.yml`. Check `app/config.js` to see credentials that node service uses to connect to mysql & redis and change it if you install it with own setup. If you use dynamic service discovery (consul/etcd), edit `diplomat.js` ## Use cases diff --git a/app/config.js b/app/config.js index ee31c9af..afac3a25 100644 --- a/app/config.js +++ b/app/config.js @@ -15,6 +15,6 @@ module.exports = { port: '6379', username: '', secret: '', - } - } + }, + }, }; diff --git a/app/diplomat.js b/app/diplomat.js index 05215ebb..adad24e5 100644 --- a/app/diplomat.js +++ b/app/diplomat.js @@ -2,7 +2,7 @@ const config = require('./config'); module.exports = { getServiceInstance: (name) => { - if(!config.serviceDiscovery[name]){ + if (!config.serviceDiscovery[name]) { throw new Error(`undefined service ${name} networkaddress`); } return config.serviceDiscovery[name];