{"id":13580414,"url":"https://github.com/servrox/nx-ng-nest-universal","last_synced_at":"2026-03-10T20:36:46.714Z","repository":{"id":38757148,"uuid":"188715877","full_name":"servrox/nx-ng-nest-universal","owner":"servrox","description":"Nx Workspace with a seperated Nest App for Angular Universal SSR.","archived":false,"fork":false,"pushed_at":"2023-03-08T03:12:53.000Z","size":704,"stargazers_count":35,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T22:32:24.907Z","etag":null,"topics":["angular","angular-univeral","angular7","enterprise-angular-applications","nest","nestjs","nodejs","nx","server-side-rendering","servrox","ssr","typescript"],"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/servrox.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}},"created_at":"2019-05-26T18:05:43.000Z","updated_at":"2023-09-29T18:50:43.000Z","dependencies_parsed_at":"2024-04-08T18:06:39.976Z","dependency_job_id":null,"html_url":"https://github.com/servrox/nx-ng-nest-universal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/servrox/nx-ng-nest-universal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servrox%2Fnx-ng-nest-universal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servrox%2Fnx-ng-nest-universal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servrox%2Fnx-ng-nest-universal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servrox%2Fnx-ng-nest-universal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/servrox","download_url":"https://codeload.github.com/servrox/nx-ng-nest-universal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servrox%2Fnx-ng-nest-universal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30352939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"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","angular-univeral","angular7","enterprise-angular-applications","nest","nestjs","nodejs","nx","server-side-rendering","servrox","ssr","typescript"],"created_at":"2024-08-01T15:01:50.932Z","updated_at":"2026-03-10T20:36:46.682Z","avatar_url":"https://github.com/servrox.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cimg src=\"https://img.shields.io/badge/servrox-approved-brightgreen.svg?style=flat\u0026link=http://servrox.solutions\u0026link=http://servrox.solutions\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH4wUXAzc5lG61vwAABS5JREFUOMtdlMlvG2UYxp/vm9Xj8ZLYjhMndhPSpEkTAqSt21QFJKCCS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vG9hzAPbv3oa9/AOn+EZTzi3CtOmQpgFJuEYwUBRVkwDa3yuvXF6g6//uyrqxO64aJWGYItqmhsr6MytoS7t2dxd6J/ehqD6K68gdEzseBg4ehKznUCivI/zWL9v5xUErhqIXpmS8+W2ZGH33OcbWiybd1H27vGRCi0Qhmv/8Eg0M7kd23HxGRwerVGWhbG3j40JPoztwFTVVx7puPEe3fhXDvOMSmUm9c++X4PY8d+ZO5u68Tdu5iTmjr7hTjPdlEejvisQQWL/0As7qJmpIHbBPZfRNoGnWcP3sKP099jeTQBJJjD0FmWmCLlz+Y+/St9yzHcwkAvHT0JXiNejI0/MC7ybGHn071ZAjV1pGf+wnF3DKMugrP9+GDIJ7ahv7dB0ESO6Brqu9vzny+NXv6GB+KKW+8+cYt2xzureOiPaIw+soxN3+x0GCtya7uHvnxZ15EVHDR1FW4jgtOCqLFhFDUbJQURefrSydV5cqJ/rGs8u3rr/znw394/523wdq64ETvekTuSB/tSHZOJOPRuBwQOUIpmi3bvqkZ5Zu16rRR2fzQzF2eYuSY9fzLr94p2Ntpzj6LUysvIkyqoiO0DwhSaJQXxC6GofBct2A3zXlH3Vz2Y33N2FtPYfzrrTvyfwN3FFg6PSFQXQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wNS0yM1QwMzo1NTo1Ny0wNDowMOmk++gAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDUtMjNUMDM6NTU6NTctMDQ6MDCY+UNUAAAAAElFTkSuQmCC\" /\u003e\n\n# Nx Workspace with Angular Universal via Nest\n\nThis project was generated using [Nx](https://nx.dev).\nIt currently includes an [Angular](https://angular.io/guide/universal) App with server side rendering (SSR) via [Nest](https://nestjs.com/).\n\n[master](https://github.com/servrox/nx-ng-nest-universal/tree/master) branch -\u003e nx workspace with two apps (angular + nest) -\u003e Step 1. - 6.\u003cbr/\u003e\n[single-app](https://github.com/servrox/nx-ng-nest-universal/tree/single-app) branch -\u003e nx workspace with single app (angular) -\u003e Step 1. - 4.\n\n\u003cp float=\"left\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/nrwl/nx/master/nx-logo.png\" height=\"100\"\u003e\n\u003cimg src=\"https://angular.io/assets/images/logos/angular/angular.svg\" height=\"145\"\u003e\n\u003cimg src=\"https://angular.io/generated/images/marketing/concept-icons/universal.png\" height=\"120\"\u003e\n\u003cimg src=\"https://camo.githubusercontent.com/0d358238ba8c67946e6555aad926b947e1a5048f/68747470733a2f2f6e6573746a732e636f6d2f696d672f6c6f676f5f746578742e737667\" height=\"120\"\u003e\n\u003c/p\u003e\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n## Steps to Reproduce\n\n### 1. Create Nx Workspace\n\n```\nnpx create-nx-workspace nx-ng-nest-universal --npm-scope=ss --style=scss\n```\n\n### 2. Generate Angular App\n\n```\nng g app ng-test-app --prefix=ss-test --routing=true --style=scss\n```\n\n### 3. Add Angular Universal module for Nest\n\n```\nng add @nestjs/ng-universal --clientProject=ng-test-app --project=ng-test-app\n```\n\n### 4. Adjustments to make everything work. (s. [Commit](https://github.com/servrox/nx-ng-nest-universal/commit/211095e0cb5c722c7cb35ffaefa982bacd4aba9c))\n\n```\n1. rimraf yarn.lock \u0026\u0026 npm i (to avoid packages conflicts)\n2. Fix fileReplacements for ng-test-app:server:production in angular.json\n3. Edit webpack.server.config.js\n```\n\n✔️ Nx App + SSR working. Move on if you want to have nest as a seperated app in your workspace.\n\n\u003cbr/\u003e\n\n### 5. Generate Nest App\n\n```\nng g node-app nest-test-app --framework=nestjs\n```\n\n### 6. Adjustments to use the freshly generated Nest App for SSR (s. [Commit](https://github.com/servrox/nx-ng-nest-universal/commit/b448fd2cac9540448b046af37ff71dc9d991fbe9))\n\n```\n1. Mainly move and edit generated files from Step 3\n2. Add @nestjs/ng-universal to nest app in workspace\n```\n\n✔️ Nx Workspace with seperated Nest App for SSR working.\n\n\u003cbr/\u003e\n\n## Getting Started (Build and Serve)\n\n```\n\u003e git clone https://github.com/servrox/nx-ng-nest-universal.git\n\u003e cd nx-ng-nest-universal\\\n\u003e npm i\n```\n\nnpm run build:ssr \u0026\u0026 npm run serve:ssr\n\n```\n\u003e npm run go\n```\n\nor for development\n\n```\n\u003e npm run serve\n```\n\nUI at http://localhost:4000/\u003cbr/\u003e\nAPI at http://localhost:4000/api\n\n\u003cbr/\u003e\n\n## Built With\n\n- [Angular CLI](https://github.com/angular/angular-cli) - version 7.3.9\n- [Angular Universal](https://github.com/angular/universal) - version 7.1.1\n- [nest](https://github.com/nestjs/nest) - version 6.2.4\n- [Nx](https://github.com/nrwl/nx) - version 7.8.6\n\n## Authors\n\n- **Marcel Mayer** -\n  [servrox.solutions](http://servrox.solutions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservrox%2Fnx-ng-nest-universal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservrox%2Fnx-ng-nest-universal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservrox%2Fnx-ng-nest-universal/lists"}