Skip to main content

Monorepo Navigation Guide

Navigate the Ever Gauzy NX monorepo structure efficiently.

Repository Structureโ€‹

ever-gauzy/
โ”œโ”€โ”€ apps/ # Applications
โ”‚ โ”œโ”€โ”€ gauzy/ # Angular web app (main UI)
โ”‚ โ”œโ”€โ”€ api/ # NestJS API server
โ”‚ โ”œโ”€โ”€ server-api/ # API standalone server
โ”‚ โ”œโ”€โ”€ desktop/ # Electron desktop app
โ”‚ โ”œโ”€โ”€ desktop-timer/ # Desktop timer app
โ”‚ โ””โ”€โ”€ ...
โ”œโ”€โ”€ packages/ # Shared packages
โ”‚ โ”œโ”€โ”€ core/ # Core API module (entities, services, controllers)
โ”‚ โ”œโ”€โ”€ contracts/ # Shared TypeScript interfaces
โ”‚ โ”œโ”€โ”€ common/ # Common utilities
โ”‚ โ”œโ”€โ”€ config/ # Configuration
โ”‚ โ”œโ”€โ”€ auth/ # Authentication module
โ”‚ โ”œโ”€โ”€ plugin/ # Plugin infrastructure
โ”‚ โ””โ”€โ”€ plugins/ # Built-in plugins
โ”‚ โ”œโ”€โ”€ changelog/
โ”‚ โ”œโ”€โ”€ knowledge-base/
โ”‚ โ”œโ”€โ”€ integration-ai/
โ”‚ โ””โ”€โ”€ ...
โ”œโ”€โ”€ libs/ # Shared libraries
โ”‚ โ”œโ”€โ”€ ui-core/ # Core UI components
โ”‚ โ””โ”€โ”€ ...
โ””โ”€โ”€ tools/ # Build tools & scripts

Key Directoriesโ€‹

DirectoryContentsKey Files
packages/core/src/libAll API modulesControllers, services
packages/contractsTypeScript interfacessrc/lib/*.model.ts
apps/gauzy/srcAngular frontendComponents, modules
packages/pluginsPlugin implementationsModule, entity files

Useful NX Commandsโ€‹

# List all projects
npx nx show projects

# Dependency graph
npx nx graph

# Run specific project
npx nx serve api
npx nx serve gauzy

# Build specific project
npx nx build api --configuration=production

# Run tests for a project
npx nx test core

# Affected projects (changes since main)
npx nx affected --target=build

Finding Codeโ€‹

Looking ForWhere to Look
API endpointpackages/core/src/lib/{feature}/
Entity definitionpackages/core/src/lib/{feature}/*.entity.ts
TypeScript interfacepackages/contracts/src/lib/
Angular componentapps/gauzy/src/app/pages/
Pluginpackages/plugins/{plugin-name}/
Shared servicepackages/common/src/lib/