{"id":26883092,"url":"https://github.com/albuquerquefabio/node-cast","last_synced_at":"2026-04-02T03:02:59.440Z","repository":{"id":254668982,"uuid":"847111566","full_name":"albuquerquefabio/node-cast","owner":"albuquerquefabio","description":"Monorepo project for audio broadcasting, built with Node.js, TypeScript, NestJS, and React. Uses PostgreSQL, Redis, Docker, and Kubernetes, with monitoring through Prometheus and Grafana.","archived":false,"fork":false,"pushed_at":"2024-10-09T14:51:44.000Z","size":1526,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-01-03T14:35:15.173Z","etag":null,"topics":["aws","docker","grafana","kubernetes","nestjs","postgresql","prometheus","react","redis","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/albuquerquefabio.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-08-24T22:06:54.000Z","updated_at":"2025-09-28T21:06:25.000Z","dependencies_parsed_at":"2025-03-31T17:07:53.530Z","dependency_job_id":null,"html_url":"https://github.com/albuquerquefabio/node-cast","commit_stats":null,"previous_names":["albuquerquefabio/node-cast"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/albuquerquefabio/node-cast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albuquerquefabio%2Fnode-cast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albuquerquefabio%2Fnode-cast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albuquerquefabio%2Fnode-cast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albuquerquefabio%2Fnode-cast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albuquerquefabio","download_url":"https://codeload.github.com/albuquerquefabio/node-cast/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albuquerquefabio%2Fnode-cast/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","docker","grafana","kubernetes","nestjs","postgresql","prometheus","react","redis","typescript"],"created_at":"2025-03-31T16:57:26.268Z","updated_at":"2026-04-02T03:02:59.399Z","avatar_url":"https://github.com/albuquerquefabio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeCast\n\n\u003ca alt=\"Nx logo\" href=\"https://nx.dev\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/nrwl/nx/master/images/nx-logo.png\" width=\"45\"\u003e\u003c/a\u003e\n\n✨ Your new, shiny [Nx workspace](https://nx.dev) is almost ready ✨.\n\n[Learn more about this workspace setup and its capabilities](https://nx.dev/nx-api/nest?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects) or run `npx nx graph` to visually explore what was created. Now, let's get you up to speed!\n\n## Finish your CI setup\n\n[Click here to finish setting up your workspace!](https://cloud.nx.app/connect/q8tQzojLOn)\n\n## Run tasks\n\nTo run the dev server for your app, use:\n\n```sh\nnpx nx serve node-cast\n```\n\nTo create a production bundle:\n\n```sh\nnpx nx build node-cast\n```\n\nTo see all available targets to run for a project, run:\n\n```sh\nnpx nx show project node-cast\n```\n\nThese targets are either [inferred automatically](https://nx.dev/concepts/inferred-tasks?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects) or defined in the `project.json` or `package.json` files.\n\n[More about running tasks in the docs \u0026raquo;](https://nx.dev/features/run-tasks?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n\n## Add new projects\n\nWhile you could add new projects to your workspace manually, you might want to leverage [Nx plugins](https://nx.dev/concepts/nx-plugins?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects) and their [code generation](https://nx.dev/features/generate-code?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects) feature.\n\nUse the plugin's generator to create new projects.\n\nTo generate a new application, use:\n\n```sh\nnpx nx g @nx/nest:app demo\n```\n\nTo generate a new library, use:\n\n```sh\nnpx nx g @nx/node:lib mylib\n```\n\nYou can use `npx nx list` to get a list of installed plugins. Then, run `npx nx list \u003cplugin-name\u003e` to learn about more specific capabilities of a particular plugin. Alternatively, [install Nx Console](https://nx.dev/getting-started/editor-setup?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects) to browse plugins and generators in your IDE.\n\n[Learn more about Nx plugins \u0026raquo;](https://nx.dev/concepts/nx-plugins?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects) | [Browse the plugin registry \u0026raquo;](https://nx.dev/plugin-registry?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n\n[Learn more about Nx on CI](https://nx.dev/ci/intro/ci-with-nx#ready-get-started-with-your-provider?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n\n## Install Nx Console\n\nNx Console is an editor extension that enriches your developer experience. It lets you run tasks, generate code, and improves code autocompletion in your IDE. It is available for VSCode and IntelliJ.\n\n[Install Nx Console \u0026raquo;](https://nx.dev/getting-started/editor-setup?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n\n## Docker\n\nTo deploy your application using Docker, follow these steps:\n\n1. **Local registry**:\n   ```sh\n   docker run -d -p 5001:5000 --name registry registry:2\n   ```\n2. **Build the Backend Image**:\n   ```sh\n   docker build -f Dockerfile.dev -t node-cast-backend:latest .\n   docker tag node-cast-backend:latest localhost:5001/node-cast-backend:latest\n   ```\n3. **Push image to local registry**:\n   ```sh\n   docker push localhost:5001/node-cast-backend:latest\n   ```\n4. **Run the Docker Container**:\n   ```sh\n   docker run -d -p 3000:3000 --name node-cast-backend localhost:5001/node-cast-backend:latest\n   ```\n\n## Deploy using kubernetes\n\nTo deploy your application using Kubernetes with a blue/green deployment strategy, follow these steps:\n\n### Create Kubernetes Secrets\n\n1. **Create secrets from environment file:**\n   ```sh\n   kubectl create secret generic app-secrets --from-env-file=.env\n   ```\n\n### Simple deployment\n\n1. **Create Deployment and Service Files:** Ensure you have the following files in your k8s directory:\n\n   - `deployment.yaml`\n   - `service.yaml`\n\n2. **Apply the Deployment and Service:**\n   ```sh\n   kubectl apply -f k8s/deployment.yaml\n   kubectl apply -f k8s/service.yaml\n   ```\n\n### Blue/Green deployment\n\n1. **Create Blue and Green deployment:** Ensure you have the following files in your k8s directory:\n\n   - `deployment-blue.yaml`\n   - `deployment-green.yaml`\n   - `service.yaml`\n\n2. **Apply the Deployment and Service:**\n   ```sh\n   kubectl apply -f k8s/deployment-blue.yaml\n   kubectl apply -f k8s/deployment-green.yaml\n   kubectl apply -f k8s/service.yaml\n   ```\n3. **Switch Traffic to Green Deployment:** When you are ready to switch traffic to the green deployment, update the service selector:\n   ```sh\n   kubectl patch service node-cast-service -p '{\"spec\":{\"selector\":{\"version\":\"green\"}}}'\n   ```\n4. **Switch Traffic to Blue Deployment:** When you are ready to switch traffic to the blue deployment, update the service selector:\n   ```sh\n   kubectl patch service node-cast-service -p '{\"spec\":{\"selector\":{\"version\":\"blue\"}}}'\n   ```\n\n### Extras\n\n1. **Get Pods:**\n   ```sh\n   kubectl get pods\n   ```\n2. ** Get service details:**\n   ```sh\n   kubectl get service node-cast-service -o yaml\n   ```\n\n## Useful links\n\nLearn more:\n\n- [Learn more about this workspace setup](https://nx.dev/nx-api/nest?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n- [Learn about Nx on CI](https://nx.dev/ci/intro/ci-with-nx?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n- [Releasing Packages with Nx release](https://nx.dev/features/manage-releases?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n- [What are Nx plugins?](https://nx.dev/concepts/nx-plugins?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n\nAnd join the Nx community:\n\n- [Discord](https://go.nx.dev/community)\n- [Follow us on X](https://twitter.com/nxdevtools) or [LinkedIn](https://www.linkedin.com/company/nrwl)\n- [Our Youtube channel](https://www.youtube.com/@nxdevtools)\n- [Our blog](https://nx.dev/blog?utm_source=nx_project\u0026utm_medium=readme\u0026utm_campaign=nx_projects)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbuquerquefabio%2Fnode-cast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbuquerquefabio%2Fnode-cast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbuquerquefabio%2Fnode-cast/lists"}