{"id":16181725,"url":"https://github.com/dkhrunov/fullstack-angular-mfe","last_synced_at":"2025-03-19T01:31:17.756Z","repository":{"id":39917141,"uuid":"410568529","full_name":"dkhrunov/fullstack-angular-mfe","owner":"dkhrunov","description":"Full-stack app, with microfronteds on the fronted side with Angular, and with microservices on the backend side with Nest.js ","archived":false,"fork":false,"pushed_at":"2023-03-26T12:59:05.000Z","size":4676,"stargazers_count":56,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-02-28T14:02:23.338Z","etag":null,"topics":["angular","micro-frontends","monorepo","nestjs","node-js","nx","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkhrunov.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-09-26T14:05:57.000Z","updated_at":"2024-12-21T19:13:08.000Z","dependencies_parsed_at":"2024-10-27T19:23:59.004Z","dependency_job_id":"9f45dfbd-771b-4128-a2ee-66b7d2d3e78f","html_url":"https://github.com/dkhrunov/fullstack-angular-mfe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhrunov%2Ffullstack-angular-mfe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhrunov%2Ffullstack-angular-mfe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhrunov%2Ffullstack-angular-mfe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkhrunov%2Ffullstack-angular-mfe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkhrunov","download_url":"https://codeload.github.com/dkhrunov/fullstack-angular-mfe/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960361,"owners_count":20375102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","micro-frontends","monorepo","nestjs","node-js","nx","typescript"],"created_at":"2024-10-10T06:26:57.099Z","updated_at":"2025-03-19T01:31:17.180Z","avatar_url":"https://github.com/dkhrunov.png","language":"TypeScript","readme":"# Fullstack Nest.js and Angular MFE application\n\nThis project was generated using [Nx](https://nx.dev).\n\n\u003cp style=\"text-align: center;\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png\" width=\"450\"\u003e\u003c/p\u003e\n\n## Adding capabilities to your workspace\n\nNx supports many plugins which add capabilities for developing different types of applications and different tools.\n\nThese capabilities include generating applications, libraries, etc as well as the devtools to test, and build projects as well.\n\nBelow are our core plugins:\n\n- [React](https://reactjs.org)\n  - `npm install --save-dev @nrwl/react`\n- Web (no framework frontends)\n  - `npm install --save-dev @nrwl/web`\n- [Angular](https://angular.io)\n  - `npm install --save-dev @nrwl/angular`\n- [Nest](https://nestjs.com)\n  - `npm install --save-dev @nrwl/nest`\n- [Express](https://expressjs.com)\n  - `npm install --save-dev @nrwl/express`\n- [Node](https://nodejs.org)\n  - `npm install --save-dev @nrwl/node`\n\nThere are also many [community plugins](https://nx.dev/community) you could add.\n\n## Code scaffolding\n\nRun `nx g @nrwl/angular:component my-component --project=my-app` to generate a new component.\n\n## Build\n\nRun `nx build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `nx test my-app` to execute the unit tests via [Jest](https://jestjs.io).\n\nRun `nx affected:test` to execute the unit tests affected by a change.\n\n## Running end-to-end tests\n\nRun `ng e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io).\n\nRun `nx affected:e2e` to execute the end-to-end tests affected by a change.\n\n## Understand your workspace\n\nRun `nx dep-graph` to see a diagram of the dependencies of your projects.\n\n## Further help\n\nVisit the [Nx Documentation](https://nx.dev) to learn more.\n\n---\n\n## Backend\n\n### Testing account\n\nEmail: test@test.com\n\nPassword: qwerty78!\n\n### Variants of running microservices in Docker\n\n---\n\n#### Development mode:\n\n`nx run-many --target=build-watch --projects=server-mail-ms,server-auth-ms,server-users-ms,server-api-gateway ...`\n\n`docker compose -f docker-compose.dev.yml up -d`\n\nOR\n\n`nx build-all-watch server-api-gateway`\n\n`docker compose -f docker-compose.dev.yml up -d`\n\nOR\n\n`npm run build-ms:watch`\n\n`docker compose -f docker-compose.dev.yml up -d`\n\nAND optional start watch and compile grpc files:\n\n`nx compile-proto-watch server-grpc`\n\nOR\n\n`npm run proto:watch`\n\n---\n\n#### Production OR CI/CD mode:\n\n`nx run-many --target=deploy --all`\n\n`docker compose -f docker-compose.prod.yml up -d`\n\nOR\n\n`nx affected --target=deploy`\n\n`docker compose -f docker-compose.prod.yml up`\n\n---\n\n## Frontend\n\n### Notice\n\n**In production build MFE will be don`t work correctly, because MfeOutletDirective create component dynamically.**\n\nThe production build runs an optimizer that strips the needed information.\nYou could turn off AOT (check the angular.json configuration) and in this case the module and components will be compiled and runtime.\nBut still, when built for production, the names of the components will be minified.\n\n### Generate an MFE application\n\n**This project has custom nx generator to automate the creation of MFE applications.**\n\nRun `nx workspace-generator mfe my-mfe` to generate an MFE application.\n\n\u003e You can select that type of MFE you want to create - host or remote\n\n### Generate an application\n\nRun `nx g @nrwl/angular:app my-app` to generate an application.\n\n\u003e You can use any of the plugins above to generate applications as well.\n\nWhen using Nx, you can create multiple applications and libraries in the same workspace.\n\n### Generate a library\n\nRun `nx g @nrwl/angular:lib my-lib` to generate a library.\n\n\u003e You can also use any of the plugins above to generate libraries as well.\n\nLibraries are shareable across libraries and applications. They can be imported from `@nx-mfe/my-lib`.\n\n### Development host app\n\nRun `nx serve client-shell-app` for a dev host app. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.\n\n### Development MFE app\n\nRun `nx serve client-auth-mfe` for a dev MFE. Navigate to http://localhost and the port specified in workspace.json or angular.json. The app will automatically reload if you change any of the source files.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkhrunov%2Ffullstack-angular-mfe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkhrunov%2Ffullstack-angular-mfe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkhrunov%2Ffullstack-angular-mfe/lists"}