{"id":19225968,"url":"https://github.com/developer239/nest-vite-fullstack-microservices-poc","last_synced_at":"2025-04-21T00:32:31.236Z","repository":{"id":182042197,"uuid":"665118813","full_name":"developer239/nest-vite-fullstack-microservices-poc","owner":"developer239","description":"A robust Nest.js microservices example featuring Apollo Federation, Turbo monorepo, RabbitMQ for messaging, a shared backend codebase, and a Vite-powered web application. Includes a custom UI library with Storybook and more...","archived":false,"fork":false,"pushed_at":"2024-07-22T19:34:35.000Z","size":4413,"stargazers_count":3,"open_issues_count":15,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T07:22:21.454Z","etag":null,"topics":["apollo-federation","crud","crud-api","crud-sample","docker","docker-compose","graphql-codegen","graphql-gateway","grapql","microservice","microservices","monorepo","nestjs","nestjs-backend","postgres","rabbitmq","tailwindcss","typeorm","vite","vitest"],"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/developer239.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":"2023-07-11T13:28:01.000Z","updated_at":"2024-06-30T22:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"80c543b0-5ce9-43f6-8765-98ca2b5875ce","html_url":"https://github.com/developer239/nest-vite-fullstack-microservices-poc","commit_stats":null,"previous_names":["developer239/nest-microservices-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fnest-vite-fullstack-microservices-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fnest-vite-fullstack-microservices-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fnest-vite-fullstack-microservices-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer239%2Fnest-vite-fullstack-microservices-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer239","download_url":"https://codeload.github.com/developer239/nest-vite-fullstack-microservices-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249980619,"owners_count":21355473,"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":["apollo-federation","crud","crud-api","crud-sample","docker","docker-compose","graphql-codegen","graphql-gateway","grapql","microservice","microservices","monorepo","nestjs","nestjs-backend","postgres","rabbitmq","tailwindcss","typeorm","vite","vitest"],"created_at":"2024-11-09T15:16:57.005Z","updated_at":"2025-04-21T00:32:30.690Z","avatar_url":"https://github.com/developer239.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nest Vite Fullstack Microservices PoC\n\nThis repository is structured as a monorepo containing multiple NestJS microservices and Vite web application. It utilizes Turborepo for managing builds and TypeORM for database interactions and bunch of other cool stuff.\n\n## TODO\n\n- [ ] GitHub Actions\n- [ ] CD (GCP + Terraform)\n- [ ] Create docker-compose for local development (currently only databases and message broker are included)\n- [ ] TODOs in code (and infinite number of small issues that I did not have time to fix)\n\n## Apps\n\n| Name                                      | Platform | Description                                                                       |\n| ----------------------------------------- | -------- | --------------------------------------------------------------------------------- |\n| [Service Gateway](./apps/service-gateway) | Backend  | The GraphQL gateway for routing queries and mutations between different services. |\n| [Service Events](./apps/service-events)   | Backend  | Manages event-related data and interactions.                                      |\n| [Service Auth](./apps/service-auth)       | Backend  | Handles authentication and user management.                                       |\n| [Web](./apps/web)                         | Frontend | The main web application.                                                         |\n| [Storybook](./apps/storybook)             | Frontend | Storybook for UI components.                                                      |\n\n## Packages\n\n| Name                                           | Description                                                                          |\n| ---------------------------------------------- | ------------------------------------------------------------------------------------ |\n| [Backend Contracts](./packages/amqp-contracts) | TypeScript interfaces and constants used across different backend services.          |\n| [Backend Shared](./packages/nest-helpers)      | Shared configurations, utilities, and modules used across multiple backend services. |\n| [UI Library](./packages/ui-library)            | A collection of reusable React components and utilities for frontend applications.   |\n\n## Infrastructure\n\n- **Message Broker**: RabbitMQ is used for communication between services.\n- **Databases**: PostgreSQL is used with separate instances for authentication and event services.\n\n## Development\n\nThis project uses Turborepo for build system management. You can find more information by [reading the Turborepo documentation](https://turborepo.org/docs).\n\n### Setting up\n\n- Run `docker-compose up` to start databases and rabbitmq.\n- Run `yarn install` to install dependencies. This project uses Yarn workspaces to manage dependencies across all apps and packages.\n- Run `yarn prepare:husky` to set up Git hooks.\n- Run `yarn build` to build all packages and service (remember that packages are static and required to run the app services)\n- Run `yarn dev` to start all services in development mode\n  - The GraphQL gateway will be available at `http://localhost:8080/graphql`\n\n### Common Commands\n\n- `yarn dev` - Starts all services in development mode with live reloading.\n- `yarn build` - Builds all services.\n- `yarn lint` - Lints the codebase using ESLint.\n- `yarn format` - Formats code using Prettier.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fnest-vite-fullstack-microservices-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper239%2Fnest-vite-fullstack-microservices-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper239%2Fnest-vite-fullstack-microservices-poc/lists"}