{"id":16428572,"url":"https://github.com/maksimr/npm-monorepo-example","last_synced_at":"2026-01-20T06:01:54.354Z","repository":{"id":222021265,"uuid":"756033389","full_name":"maksimr/npm-monorepo-example","owner":"maksimr","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-10T20:55:09.000Z","size":57,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-10T23:43:33.562Z","etag":null,"topics":["microservices","monorepo","nodejs","npm-workspaces","typescript"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/maksimr.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":"2024-02-11T19:35:42.000Z","updated_at":"2025-10-19T06:34:05.000Z","dependencies_parsed_at":"2024-03-19T00:26:51.082Z","dependency_job_id":"0028e027-54f7-4874-af30-99586624ce89","html_url":"https://github.com/maksimr/npm-monorepo-example","commit_stats":null,"previous_names":["maksimr/npm-monorepo-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maksimr/npm-monorepo-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fnpm-monorepo-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fnpm-monorepo-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fnpm-monorepo-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fnpm-monorepo-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maksimr","download_url":"https://codeload.github.com/maksimr/npm-monorepo-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maksimr%2Fnpm-monorepo-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["microservices","monorepo","nodejs","npm-workspaces","typescript"],"created_at":"2024-10-11T08:17:35.938Z","updated_at":"2026-01-20T06:01:54.348Z","avatar_url":"https://github.com/maksimr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm monorepo template\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/maksimr/npm-monorepo-example?quickstart=1)\n\nThis is a template for a monorepo using NPM workspaces, Docker and TypeScript. This describes how to build, develop, deploy and test the nodejs services\n\n## 🏗️ Build\n\nBefore building the project, you need to install the dependencies. You can do this by running the following command:\n\n```bash\nnpm ci\n```\n\nTo build specific packages, you can use the following command:\n\n```bash\nnpm run build -w \u003cpackage-name\u003e\n```\n\nIf you want to build all packages, you can use the following command:\n\n```bash\nnpm run build --workspaces --if-present\n```\n\n## 🖥️ Development\n\nTo run the service, you can use the following command:\n\n```bash\nnpm run dev -w \u003cpackage-name\u003e\n```\n\nIf you want to rebuild a service when a service's files change,\nyou can use the following after running the `dev` command:\n\n```bash\nnpm run build --watch -w \u003cpackage-name\u003e\n```\n\n## 🚀 Deployment\n\n### 🐳 Docker\n\nTo deploy the service, you can use the following command:\n\n```bash\ndocker compose up foo1 --force-recreate --build\n```\n\nTo stop the service, you can use the following command:\n\n```bash\ndocker compose down\n```\n\n### ☸️ Kubernetes\n\nTo deploy all services, you can use the following command:\n\n```bash\n./scripts/minikube/deploy.sh\n```\n\nTo deploy specific services, you can use the following command:\n\n```bash\n./scripts/minikube/deploy.sh \u003cservice-name\u003e \u003cservice-name\u003e ...\n```\n\n## 🧪 Test\n\nTo run the all tests, you can use the following command:\n\n```bash\nnpm run test:all -w \u003cpackage-name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksimr%2Fnpm-monorepo-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaksimr%2Fnpm-monorepo-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaksimr%2Fnpm-monorepo-example/lists"}