跳到主要内容

Development Guide

Getting started with Ever Gauzy development including environment setup, tooling, and best practices.

Prerequisites

ToolVersionPurpose
Node.js18+ LTSRuntime
Yarn4+ (Berry)Package manager
GitLatestVersion control
PostgreSQL14+Database (optional, SQLite for dev)
VS CodeLatestRecommended IDE

Quick Start

# Clone the repository
git clone https://github.com/ever-co/ever-gauzy.git
cd ever-gauzy

# Install dependencies
yarn install

# Copy environment file
cp .env.sample .env

# Start API in development mode
yarn start:api

# Start webapp in development mode (separate terminal)
yarn start:gauzy

NX Workspace

Ever Gauzy is an NX monorepo:

# List all projects
npx nx show projects

# Build a specific project
npx nx build api

# Run affected builds (only changed projects)
npx nx affected --target=build

# Generate dependency graph
npx nx graph

Development Servers

ServiceCommandURL
APIyarn start:apihttp://localhost:3000
Webappyarn start:gauzyhttp://localhost:4200
Desktop Timeryarn start:desktop-timerElectron window

Hot Reload

# API + Webapp with hot reload
yarn start:watch

This starts both API and webapp with file watching enabled.

VS Code Extensions

Recommended:

ExtensionPurpose
Angular Language ServiceAngular template support
ESLintLint integration
PrettierCode formatting
NX ConsoleNX project management
GitLensGit integration