{"id":22314228,"url":"https://github.com/tuantoquq/sample-nestjs-microservices","last_synced_at":"2026-04-13T01:40:01.758Z","repository":{"id":198198404,"uuid":"697209607","full_name":"tuantoquq/sample-nestjs-microservices","owner":"tuantoquq","description":"Sample NestJS Microservice","archived":false,"fork":false,"pushed_at":"2025-10-08T08:58:10.000Z","size":313,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T10:28:34.232Z","etag":null,"topics":["docker","microservices","nestjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tuantoquq.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-27T09:18:58.000Z","updated_at":"2025-10-08T08:58:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"8feae219-1310-48aa-9be5-d6b075f63cd2","html_url":"https://github.com/tuantoquq/sample-nestjs-microservices","commit_stats":null,"previous_names":["tuantoquq/sample-nestjs-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuantoquq/sample-nestjs-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuantoquq%2Fsample-nestjs-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuantoquq%2Fsample-nestjs-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuantoquq%2Fsample-nestjs-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuantoquq%2Fsample-nestjs-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuantoquq","download_url":"https://codeload.github.com/tuantoquq/sample-nestjs-microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuantoquq%2Fsample-nestjs-microservices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docker","microservices","nestjs"],"created_at":"2024-12-03T22:09:24.302Z","updated_at":"2026-04-13T01:40:01.739Z","avatar_url":"https://github.com/tuantoquq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"200\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\nSample Microservices with NestJS using TCP protocol to communicate between each service.\n\n## Start\n\n### 1. With docker\n\n- Start in development env:\n\n```bash\n$ docker compose -f docker-compose.dev.yml up --build\n```\n\n- Start in production env:\n\n```bash\n$ docker compose -f docker-compose.prod.yml up --build\n```\n\n### 2. With Kubernetes\n\n- Firstly, we need create some secrets using for this K8s cluster.\n\nCreate secret for MongoDB URI\n\n```bash\n$ kubectl create secret generic mongodb --from-literal=connectionString=\u003cconnection_string\u003e\n```\n\nCreate secret for Stripe:\n\n```bash\n$ kubectl create secret generic stripe --from-literal=apiKey=\u003cstripe_api_key\u003e\n```\n\nCreate secret for emails notify:\n\n```bash\n$ kubectl create secret generic emails --from-literal=appPassword=\u003cemail_app_password\u003e\n```\n\n- After creating all secrets, we can start microservices with K8s:\n\n```bash\n$ cd k8s/mcr-tcp\n\n$ helm install \u003ccluster_name\u003e .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuantoquq%2Fsample-nestjs-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuantoquq%2Fsample-nestjs-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuantoquq%2Fsample-nestjs-microservices/lists"}