-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated readmes more and added .madgerc
- Loading branch information
1 parent
e77f07e
commit 0c39837
Showing
8 changed files
with
66 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"excludeRegExp": [".*\\.spec\\.js", "package\\.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
# Dataservices | ||
|
||
Dataservices communicate with storage systems or external APIs to fetch/store data. | ||
Dataservices abstract the communication with storage systems or external APIs to fetch/store data related to a | ||
topic or for a specific UI component. | ||
|
||
## Examples | ||
|
||
## Hello World | ||
|
||
Simple example of Hello World endpoint plus example with random value and input from path parameter | ||
|
||
## Note Dataservice | ||
|
||
### Note Dataservice | ||
Create/Read Note objects out of a mariadb/mysql database | ||
|
||
|
||
## Notes/Ideas | ||
- RDBMS vs Document store | ||
- CAP theorem stands for C – Consistency, A — Availability, P — Partitioning (or Scalability) and states that having all three properties at the same time is not possible, | ||
- https://medium.com/statuscode/three-reasons-to-use-a-nosql-document-store-for-your-next-web-application-6b9eabffc8d8 | ||
- Document Store: | ||
- use for settings data and where schema will be changed often | ||
- when changes are small crud, based on users interactions? | ||
- when count and aggregate data is useful to end user | ||
- RDBMS: | ||
- less duplicated data, normalized and stored in specific tables | ||
- useful when data changes often | ||
- seems like more useful for storing fact data in ETL processes? | ||
- Q: phoenix? | ||
- Quick storage dataservice (abstracted away from specific object?) | ||
- takes object from post/put request and places in mongodb | ||
- objects indexed by another param | ||
- automatically assigned id | ||
- retrieves with get request | ||
- delete request | ||
- takes multiple object ids | ||
- search/or retrieve by property? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
# Helpers | ||
|
||
Helpers are classes that wrap some functionality not associated with an external service | ||
Helpers are classes that modularize some functionality that is useful in the server. | ||
|
||
## MariaDB | ||
- connecting with mariadb server | ||
## Examples | ||
|
||
### MariaDB | ||
Helper class for connecting with mariadb server and saving/retrieving rows from tables | ||
- query | ||
- insert | ||
- fetch | ||
- fetchOne | ||
|
||
## Config | ||
- reading properties from [config file](https://github.com/devlinjunker/template.node.hapi/blob/master/conf/config.yaml#L3) | ||
|
||
## Healthcheck | ||
- Make simple requests to configured DB/External Services to see if available | ||
### Config | ||
Helper class for reading properties from [config file](https://github.com/devlinjunker/template.node.hapi/blob/master/conf/config.yaml#L3) | ||
- provides a typed interface of these properties | ||
|
||
### Healthcheck | ||
Helper for building the healthcheck response that is displayed at `<CONFIG.PATHS.healthceck>` endpoint. | ||
- Determines version/branch and if the server is running properly | ||
- Makes simple requests to configured dependency DB/External Services to see if they are available | ||
|
||
|
||
|
||
## Notes/Ideas | ||
- **IDEA:** Should healthcheck read log file for past minute to see if any errors? | ||
- Do we want/need to worry about Dependency Injection/Singletons? | ||
- **IDEA:** Move Server into helpers as `server.helper.js`? | ||
- RDBMS vs Document store | ||
- CAP theorem stands for C – Consistency, A — Availability, P — Partitioning (or Scalability) and states that having all three properties at the same time is not possible, | ||
- https://medium.com/statuscode/three-reasons-to-use-a-nosql-document-store-for-your-next-web-application-6b9eabffc8d8 | ||
- Document Store: | ||
- use for settings data and where schema will be changed often | ||
- when changes are small crud, based on users interactions? | ||
- when count and aggregate data is useful to end user | ||
- RDBMS: | ||
- less duplicated data, normalized and stored in specific tables | ||
- useful when data changes often | ||
- seems like more useful for storing fact data in ETL processes? | ||
- Q: phoenix? |