How jeffreysanford/craft-fusion works
Project Type & Purpose
• Craft Fusion is a monorepo-managed, modern web application framework that integrates an Angular frontend (craft-web), a NestJS backend (craft-nest), and Go microservices (craft-go). It is built with a focus on performance, scalability, and an excellent developer experience.
• The project leverages Nx for monorepo management and includes integrated testing setups (unit, e2e) and design system tooling.
Main Components
A. Angular Frontend (craft-web):
– This is the user interface built in Angular and using Material Design.
– It handles the client-side application and presentation, routing, and user interactions.
– Represent its internal modules such as shared components (user menus, themes, charts, etc.), pages (admin, landing, reports, projects), and utilities.
B. NestJS Backend (craft-nest):
– Acts as the primary API server with type-safe endpoints, authentication, authorization, health monitoring, and business logic.
– Mark dependency injection and service layers that connect to further microservices or third-party APIs.
C. Go Microservices (craft-go):
– A high-performance auxiliary service that likely handles specific tasks such as metrics, OAuth, and record management.
– Include components like HTTP handlers (oauth_handler.go, record_handler.go, metrics_handler.go) and repository integration from craft-go.
D. Nx Monorepo & Tooling:
– Represent that the entire project is managed as one workspace. Note inter-project dependencies and the common tooling for testing, linting, and building.
– Include supporting testing modules (craft-web-e2e and craft-nest-e2e) that help verify the integration and functionality of the system.
E. External/Supporting Elements (Optional if applicable):
– Although not explicitly detailed, you may indicate connections to databases, external APIs (for financial data, for example) or third-party services as “external services” if the project integrates these.
– Include CI/CD pipelines (GitHub workflows) as part of the deployment pipeline for production builds.
Relationships & Data Flows
• If necessary, illustrate the integration points from backend components toward external services or databases.
• Nx’s build processes and deployment pipelines feeding into production builds (using outputs from the dist/ directory).
Architectural Patterns & Design Principles
– Client (Angular) vs. API (NestJS) vs. Microservices (Go).
• Modularity, where each component (frontend, backend, microservices) is further separated into feature modules or services.
• Dependency injection (especially in NestJS) and clear API boundaries.
• Monorepo organization which simplifies dependency management and testing across projects.