Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tot-ra committed Dec 11, 2020
1 parent 7bf246b commit d1f2c28
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ Graphql schema storage as dockerized on-premise service for federated graphql ga
<img width="1309" alt="Screenshot 2020-08-31 at 15 40 43" src="https://user-images.githubusercontent.com/445122/91720806-65985c00-eba0-11ea-8763-986b9f3f166b.png">

## 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:

```
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ module.exports = {
port: '6379',
username: '',
secret: '',
}
}
},
},
};
2 changes: 1 addition & 1 deletion app/diplomat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d1f2c28

Please sign in to comment.