-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery service based on proto endpoint #30
Conversation
* Add try-catch block to control exceptions on run function * Change proto generation script spinner appearance for a better look
* Add proto files fetching node script * Update README with specifics on how to fetch proto files * Add axios dependency to be able make HTTP requests * Add metrics proto file to proto directory
* Update gen-proto-code script to use protoc binary. * Update npm scripts. * Update README. * Update dependencies
* Add a microservices information fetching method, deserializing a meesaged based on the proto associated with that endpoint. * Consume that service on the app main component. * Set an environment variable that points to that microservices and nodes discovery information. This closes #13.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments.
build-scripts/fetch-proto.js
Outdated
const urlObject = new URL(arg); | ||
return urlObject; | ||
} catch (e) { | ||
// throw new Error(`Error: ${arg} is not a valid URL path`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adressed on 59ef685
build-scripts/fetch-proto.js
Outdated
}) | ||
.catch((error) => { | ||
spinner.fail(`Error connecting to: ${error.config.url}`); | ||
// shell.echo(`Error connecting to: ${error.config.url}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adressed on 59ef685
src/environments/environment.prod.ts
Outdated
@@ -1,5 +1,6 @@ | |||
export const environment = { | |||
production: true, | |||
// metricsEndpoint: 'ws://localhost:8080/metrics' | |||
metricsEndpoint: 'ws://localhost:3000' | |||
metricsEndpoint: 'ws://localhost:3000', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adressed on 59ef685
src/environments/environment.ts
Outdated
@@ -6,5 +6,6 @@ | |||
export const environment = { | |||
production: false, | |||
// metricsEndpoint: 'ws://localhost:8080/metrics' | |||
metricsEndpoint: 'ws://localhost:3000' | |||
metricsEndpoint: 'ws://localhost:3000', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adressed on 59ef685
Add fetch-proto script
Use google-protobuf JS runtime
Fix error message on gen-proto-code script
Add JS generated classes from proto descriptors
Add microservices discovery service
This closes #13