-
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
Implement config, update search options #21
Conversation
src/config/Config.ts
Outdated
|
||
// Private Properties | ||
#configFolder: string = "./"; | ||
#port: number = 8084; |
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.
Why 8084?
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.
See system port number specifications here: https://github.com/agile-learning-institute/mentorHub/blob/main/specifications/architecture.yaml. Basically all the API's are eventually served from the same host, just at different port numbers.
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.
I'm still unclear as to why it's 8084 here and 8081 elsewhere in the file. Isn't 8084 for the partner API?
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.
you are correct, will fix this
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.
OH - that is an un-needed initialization, it is over-ridden as the default on line 43 - I chaned this to 0
…search-api into implement-config
This refactor implements a seperation of concerns, jest unit testing, and stepci end-to-end testing.
Seperation of concerns
/src/config - Configuration Code
/src/controllers - HTTP request/reply handlers
/src/services - Service layer for RBAC and Business Logic
/src/store - ElastiicIO wrapper
/src/server.ts - Entrypoint to Initilize and Run Server
closes #15
closes #4
closes #13
NOTE: These changes are dependent on code from PR's on the mentorhub and mentorhub-elasticsearch repo's. To test locally you will need to
make install
to get docker-compose updatesnpm run container
- new initializeYou should then be able to run
npm run container
andnpm run stepci
to see the API in action.