πŸ“š Reference

Monorepo Workspace Guide

Navigate and work within the Gauzy NX monorepo.

Workspace Layout

ever-gauzy/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ gauzy/              ← Angular web app
β”‚   β”œβ”€β”€ api/                ← NestJS API server
β”‚   β”œβ”€β”€ desktop/            ← Electron desktop app
β”‚   β”œβ”€β”€ desktop-timer/      ← Desktop timer variant
β”‚   └── server/             ← Electron server
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ core/               ← Core API library
β”‚   β”œβ”€β”€ auth/               ← Authentication
β”‚   β”œβ”€β”€ common/             ← Shared types & utils
β”‚   β”œβ”€β”€ config/             ← Configuration
β”‚   β”œβ”€β”€ contracts/          ← TypeScript interfaces
β”‚   └── plugins/            ← Plugin packages
β”‚       β”œβ”€β”€ integration-ai/
β”‚       β”œβ”€β”€ integration-github/
β”‚       └── ...
β”œβ”€β”€ libs/
β”‚   β”œβ”€β”€ ui-core/            ← Angular shared UI
β”‚   └── desktop-libs/       ← Desktop shared libs
β”œβ”€β”€ nx.json
β”œβ”€β”€ workspace.json
└── package.json

Key Commands

CommandDescription
yarn start:apiStart API (dev)
yarn startStart web app (dev)
yarn build:apiBuild API
yarn buildBuild web app
yarn testRun all tests
yarn lintLint all packages

NX Commands

# Run specific project target
npx nx run api:build

# Affected builds (only changed)
npx nx affected:build

# Dependency graph
npx nx graph

# List all projects
npx nx show projects

Package Dependencies

Diagram; its source is available below
Diagram source
graph TB
    API[apps/api] --> Core[packages/core]
    API --> Auth[packages/auth]
    Core --> Common[packages/common]
    Core --> Config[packages/config]
    Core --> Contracts[packages/contracts]
    Common --> Contracts

    Web[apps/gauzy] --> UICore[libs/ui-core]
    UICore --> Contracts

Edit this page

Copyright Β© 2023-Present Ever Co. LTD.Docs by Sourcey