{"id":19513897,"url":"https://github.com/easonlai/node-express-js-rest-api-demo","last_synced_at":"2026-04-29T16:09:25.548Z","repository":{"id":123381884,"uuid":"377889194","full_name":"easonlai/node-express-js-rest-api-demo","owner":"easonlai","description":"Node Express JS Rest API with Winston Logging Configuration Demo Repo.","archived":false,"fork":false,"pushed_at":"2021-06-18T04:24:35.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T05:45:24.481Z","etag":null,"topics":["containerization","express","express-js","expressjs","logging","node","node-js","nodejs","winston","winston-logger","winston-transport","winstonjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easonlai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-17T16:06:27.000Z","updated_at":"2021-06-18T04:24:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"789f4fc1-6038-472f-82f7-38616060b432","html_url":"https://github.com/easonlai/node-express-js-rest-api-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/easonlai/node-express-js-rest-api-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fnode-express-js-rest-api-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fnode-express-js-rest-api-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fnode-express-js-rest-api-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fnode-express-js-rest-api-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easonlai","download_url":"https://codeload.github.com/easonlai/node-express-js-rest-api-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easonlai%2Fnode-express-js-rest-api-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32433079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containerization","express","express-js","expressjs","logging","node","node-js","nodejs","winston","winston-logger","winston-transport","winstonjs"],"created_at":"2024-11-10T23:33:36.894Z","updated_at":"2026-04-29T16:09:25.525Z","avatar_url":"https://github.com/easonlai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Express JS Rest API with Winston Logging Configuration Demo Repo\nThis is demo repo to demostrate how to work with [Winston](https://www.npmjs.com/package/winston) logging in Node Express JS Rest API. Logging will output to STROUT (console) and log path (/logs/log.log). This repo also contain containerization materials for futher deployment in Kubernetes (K8S) cluster (e.g Azure Kubernetes Service (AKS)). \n\nReadme update 1.0\n\n## With Winston Logging\n* Logging format = Type, Label, Datetime, Status Code, Status Message, Request Path, Request Method, Client IP, Host IP\n```shell\nPlease refer to index.js line 6 - 27 for core Winston configuration.\nLine 33 for normal response capture.\nLine 38 - 47 for error capture.\n```\n\n## Run locally\n```shell\nnode index.js\n```\n\n## Test Rest API locally\n```shell\nhttp://localhost:8081\n```\n\n## Containerize\n1. Build a docker image using `Dockerfile`:\n   ```\n   docker build -t node-express-js-rest-api-demo .\n   ```\n2. Run docker image locally\n   ```\n   docker run --rm -p 8081:8081 node-express-js-rest-api-demo\n   ```\n3. Then you can access the Rest API at http://localhost:8081/listSAs from Postman.\n\n## Deploy to K8S\n```shell\nkubectl apply -f node-express-js-rest-api-demo.yaml\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonlai%2Fnode-express-js-rest-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasonlai%2Fnode-express-js-rest-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasonlai%2Fnode-express-js-rest-api-demo/lists"}