{"id":23470811,"url":"https://github.com/fcbento/angular-nx-monorepo-git-submodules","last_synced_at":"2026-05-16T17:36:06.608Z","repository":{"id":269358318,"uuid":"907163320","full_name":"fcbento/angular-nx-monorepo-git-submodules","owner":"fcbento","description":"Boilerplate for working with monorepos using Nx, Angular and git submodules","archived":false,"fork":false,"pushed_at":"2024-12-23T02:34:33.000Z","size":205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T09:09:14.448Z","etag":null,"topics":["angular","nx","nx-workspace"],"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/fcbento.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}},"created_at":"2024-12-23T01:18:14.000Z","updated_at":"2024-12-23T02:34:36.000Z","dependencies_parsed_at":"2024-12-23T02:23:08.973Z","dependency_job_id":"ee3f0933-f612-4643-92ff-2a774f107e27","html_url":"https://github.com/fcbento/angular-nx-monorepo-git-submodules","commit_stats":null,"previous_names":["fcbento/angular-nx-monorepo-git-submodules"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fcbento/angular-nx-monorepo-git-submodules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbento%2Fangular-nx-monorepo-git-submodules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbento%2Fangular-nx-monorepo-git-submodules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbento%2Fangular-nx-monorepo-git-submodules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbento%2Fangular-nx-monorepo-git-submodules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcbento","download_url":"https://codeload.github.com/fcbento/angular-nx-monorepo-git-submodules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbento%2Fangular-nx-monorepo-git-submodules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33111997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["angular","nx","nx-workspace"],"created_at":"2024-12-24T16:14:57.075Z","updated_at":"2026-05-16T17:36:06.590Z","avatar_url":"https://github.com/fcbento.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular NX monorepo and Git submodules\n\nMinimal setup for using Nx monorepos for an Angular based project using git submodules. It basically enables to have multiple teams working in the same project but in different repositories, enhancing developer productivity. I followed this [tutorial](https://nx.dev/getting-started/tutorials/angular-monorepo-tutorial) to achieve the result and did a little research to understand about [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules). The main app holds the codebase for multiple projects, components, libraries or shared UIs related of the same system.\n\n## Prerequisites\n\nRequirements for running the app locally\n- [Node](https://nodejs.org/)\n- [Npm](https://www.npmjs.com/)\n\n\n## How it was achieved\n\n##### Create the workspace and add a remote git repository.\n```npx create-nx-workspace@latest angular-nx-monorepo-git-submodules --preset=angular-monorepo --skipGit```\n\n##### Go into the repository\n```cd angular-nx-monorepo-git-submodules```\n\n##### Remove the default created app so that we can create a new app and add a gitsubmodule to it. Maybe review this step?\n```rm -rf apps/angular-nx-monorepo-git-submodules```\n\n##### Git initialization (main repository)\n```\ngit init\ngit add .\ngit commit -m \"feat: create workspace\"\ngit branch -M main\ngit remote add origin https://github.com/fcbento/angular-nx-monorepo-git-submodules.git\ngit push -u origin main\n```\n\n### Adding submodules\n\n#### - Create a new git repository\n\n```cd apps```\n\n##### Add a git submodule\n```git submodule add https://github.com/fcbento/angular-nx-project-example.git```\n\n##### Create new Angular app\n```npx nx g @nx/angular:app apps/angular-nx-project-example```\n\n##### Serve\n```npx nx serve app-example-one```\n\n##### Get changes from monorepo\n```git submodule foreach git pull```\n\n### Git submodules\n\n\u003cimg alt=\"example\" width=\"800\" src=\"gitsubmodule.png\"\u003e\n\n### Main application\n\n\u003cimg alt=\"example\" width=\"800\" src=\"commit.png\"\u003e\n\n### TODO\n\n- [ ] Create a monorepo for a shared library\n- [ ] Improve this documentation\n  \n## Built With\n\nThis was created with the following tech stack.\n\n## [Nx](https://nx.dev/)\n\n[![My Skills](https://skillicons.dev/icons?i=angular,nodejs,typescript,vscode\u0026perline=10)](https://skillicons.dev)\n\n\n## Top contributors\n\n\u003ca href=\"https://github.com/fcbento/node-prisma-docker-postgresql-ci/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=fcbento/node-prisma-docker-postgresql-ci\" alt=\"contrib.rocks image\"/\u003e\n\u003c/a\u003e\n\n## Contact\n\n[![linkedin](https://skillicons.dev/icons?i=linkedin)](https://linkedin.com/in/felipe-bento)\n[![discord](https://skillicons.dev/icons?i=discord)](https://discordapp.com/users/413141379074490369)\n[![gmail](https://skillicons.dev/icons?i=gmail)](mailto:felipe.16costa@gmail.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcbento%2Fangular-nx-monorepo-git-submodules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcbento%2Fangular-nx-monorepo-git-submodules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcbento%2Fangular-nx-monorepo-git-submodules/lists"}