{"id":15547589,"url":"https://github.com/hakalb/mean-devops-lab","last_synced_at":"2026-01-07T10:38:33.449Z","repository":{"id":38627749,"uuid":"233586446","full_name":"hakalb/mean-devops-lab","owner":"hakalb","description":"MEAN stack with NestJS and DevOps tooling using Nx","archived":false,"fork":false,"pushed_at":"2022-12-10T14:43:47.000Z","size":2206,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T11:23:31.876Z","etag":null,"topics":["angular","devops","mean-stack","mongodb","nestjs","nx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/hakalb.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}},"created_at":"2020-01-13T12:04:51.000Z","updated_at":"2020-05-03T19:30:09.000Z","dependencies_parsed_at":"2023-01-26T07:46:31.246Z","dependency_job_id":null,"html_url":"https://github.com/hakalb/mean-devops-lab","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/hakalb%2Fmean-devops-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakalb%2Fmean-devops-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakalb%2Fmean-devops-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakalb%2Fmean-devops-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakalb","download_url":"https://codeload.github.com/hakalb/mean-devops-lab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246123055,"owners_count":20726936,"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","devops","mean-stack","mongodb","nestjs","nx"],"created_at":"2024-10-02T13:09:45.843Z","updated_at":"2026-01-07T10:38:28.403Z","avatar_url":"https://github.com/hakalb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Multi Stack Lab \u003c!-- omit in toc --\u003e\n\n## Content \u003c!-- omit in toc --\u003e\n\n- [1. Purpose of project](#1-purpose-of-project)\n- [2. Managing development](#2-managing-development)\n  - [Start application stack on virtual servers with live reload](#start-application-stack-on-virtual-servers-with-live-reload)\n  - [Start application stack as Docker background process](#start-application-stack-as-docker-background-process)\n  - [Stop application stack and cleanup containers and networks](#stop-application-stack-and-cleanup-containers-and-networks)\n  - [Rebuild application stack](#rebuild-application-stack)\n- [3. Use Nx to evolve the stack](#3-use-nx-to-evolve-the-stack)\n  - [Generate an application](#generate-an-application)\n  - [Generate a library](#generate-a-library)\n  - [Development server](#development-server)\n  - [Code scaffolding](#code-scaffolding)\n  - [Build](#build)\n  - [Running unit tests](#running-unit-tests)\n  - [Running end-to-end tests](#running-end-to-end-tests)\n  - [Understand your workspace](#understand-your-workspace)\n  - [Further help](#further-help)\n- [4. References](#4-references)\n\n## 1. Purpose of project\n\nCreate a multi stack application using\n\n- `Angular` _as front end client_\n- `Nest` _as backend rest and push api_\n- `MongoDB` _as NoSql database_\n- `Nx` _as monorepo developer tool_\n- `docker-compose` _to containerize and start/stop the stack (development)_\n- `minikube` _to containerize and orchestrate the stack (development)_\n\nThe stack will be deployed to `Kubernetes` using a cloud privider with `DevOps` capabilities, e.g:\n\n- `Codefresh` _as CI/CD tool_\n- `DigitalOcean` _as host provider_\n\n## 2. Managing development\n\n### Start application stack on virtual servers with live reload\n\nThis is the normal case when developing code. Every code change trigger a rebuild and browser refresh.\n\n```bash\nnpm start\n```\n\n\u003e Open browser and navigate to \u003chttp://localhost:4200\u003e\n\nIt's also possible to activate debugging when using virtuel servers.\n\n### Start application stack as Docker background process\n\n\u003e This lets the user test the stack built for production. Note! Everything is built when images are missing.\n\n```bash\ndocker-compose up -d\n```\n\n\u003e Open browser and navigate to \u003chttp://localhost\u003e\n\nView container details.\n\n```bash\ndocker ps\n```\n\n### Stop application stack and cleanup containers and networks\n\n```bash\ndocker-compose down\n```\n\n### Rebuild application stack\n\n```bash\ndocker-compose build --parallel\n```\n\nor open and force a rebuild at the same time\n\n```bash\ndocker-compose up --force-recreate -d\n```\n\n## 3. Use Nx to evolve the stack\n\n\u003e Nx auto generated documentation!\n\nThis project was initially generated using [Nx](https://nx.dev), which is a set of Extensible Dev Tools for Monorepos.\n\n### Generate an application\n\nRun `ng 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 `ng 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 sharable across libraries and applications. They can be imported from `@mean-devops-lab/mylib`.\n\n### Development server\n\nRun `ng serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.\n\n### Code scaffolding\n\nRun `ng g component my-component --project=my-app` to generate a new component.\n\n### Build\n\nRun `ng 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 `ng 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/angular) to learn more.\n\n## 4. References\n\n- \u003chttps://minikube.sigs.k8s.io/\u003e\n- \u003chttps://github.com/ibenjelloun/chat-room\u003e\n- \u003chttps://github.com/kostis-codefresh/nestjs-example\u003e\n- \u003chttps://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakalb%2Fmean-devops-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakalb%2Fmean-devops-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakalb%2Fmean-devops-lab/lists"}