Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanziw/hello-node
Simple server for test
https://github.com/kanziw/hello-node
Last synced: 3 days ago
JSON representation
Simple server for test
- Host: GitHub
- URL: https://github.com/kanziw/hello-node
- Owner: kanziw
- Created: 2020-06-17T14:36:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T02:58:17.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T14:23:24.919Z (2 months ago)
- Language: TypeScript
- Size: 1.64 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hello-node
> Simple server for test
## Commands
```zsh
$ make help
Usage:build build the application
run run the application(card)
test run tests
lint check everything's okay
format format files
help prints this help message
```## APIs
### GET /
```text
π Hello there?
```### GET /v1/time
```json
{
"timestamp": 1592404155,
"timestamp_ms": 1592404155293,
"time_human": "2020-06-17T23:29:15.293000000+00:00"
}
```### GET /v1/msa
Micro service κ° Tracing μ 체ν¬νκΈ° μν΄ μ¬μ©νλ©΄ μ’μ Endpoint.
Related ENV
* TARGET_HOST: Endpoint λ΄μμ API μμ²μ λ³΄λΌ target server host
* HEADER_PREFIXES_FOR_PROPAGATION: `TARGET_HOST` μ API μμ²μ λ³΄λΌ λ ν¨κ» μ λ¬ ν header prefix. `,` λ‘ λΆλ¦¬νμ¬ μ¬λ¬κ°λ₯Ό λ£μ μ μλ€.
* DELAY_MS_BETWEEN_REQUEST_TO_TARGET: target server μ μμ²μ 보λ΄κΈ° μ /νλ‘ κ°μ§ delayTARGET_HOST μμ `hello-node` μ΄μ΄μΌ μλμ²λΌ κΉλνκ² λ¨μ΄μ§λ€.
```json
{
"name": "RootServiceName",
"headers": { "headers_from": "request" },
"history": [
{ "name": "RootServiceName", "headers": { "headers_from": "request" } },
{ "name": "TargetServiceName", "headers": {} },
]
}
```