Web Application (gauzy)
Relevant source files
The following files were used as context for generating this wiki page:The gauzy application is the primary web-based user interface for the Ever Gauzy Platform. It is a comprehensive frontend application built with Angular, providing users with access to the platform's extensive features for business management. As an Open Business Management Platform, it encompasses functionalities for Enterprise Resource Planning (ERP), Customer Relationship Management (CRM), and Human Resource Management (HRM).
This web application serves as the client-side component in the platform's architecture, communicating with a headless backend API to manage data and business logic. It is designed to be modular and extensible through a plugin system, allowing for the integration of additional features and third-party services. The application can be run locally for development, deployed via Docker, or accessed through the official SaaS and demo environments.
Sources: README.md, apps/gauzy/README.md
Architecture and Technology Stack
The gauzy web application is built on a modern technology stack, primarily centered around Angular and TypeScript. It is part of a larger Nx monorepo, which helps manage dependencies and build processes across the entire platform, including the backend API and various libraries.
The diagram below illustrates the high-level architecture of the Ever Gauzy platform, showing how the gauzy frontend application interacts with other components.
This diagram shows the user interacting with the Angular-based web app, which in turn communicates with the NestJS backend API. The API handles business logic and data persistence with a database and other backing services.
Sources: README.md
Core Technologies
The application leverages a set of robust libraries and frameworks to deliver its features.
| Technology / Library | Description |
|---|---|
| Angular | The core framework for building the single-page application. |
| TypeScript | The primary programming language, providing static typing. |
| Ngx-admin | A template for the admin dashboard, providing the base theme and layout. |
| Nebular | A UI library for Angular that provides a set of themable components. |
| RxJS | Used for reactive programming and managing asynchronous data streams. |
| Nx | A smart, extensible build framework for managing the monorepo. |
Sources: README.md, package.json
Project Structure and Build Process
The gauzy application is defined as an application within the Nx workspace. Its build and serve configurations are managed in project.json files, and the root package.json contains scripts to orchestrate development and production builds.
Key Scripts
The following table outlines the main scripts used to manage the gauzy web application lifecycle.
| Script | Description |
|---|---|
start | Starts both the api and gauzy applications concurrently for local development. |
start:gauzy | Starts only the gauzy frontend application with live-reloading. |
build:gauzy | Builds the gauzy application for development. |
build:gauzy:prod | Builds the gauzy application for production, with optimizations. |
start:api | Starts the backend API server, which the frontend depends on. |
test | Runs unit tests for the application. |
lint | Lints the application's source code. |
Sources: package.json
Build and Run Flow
The local development workflow is initiated by a single command, which leverages concurrently to run both the frontend and backend servers.
This flow ensures that developers have a fully functional environment with both the frontend and backend running simultaneously.
Sources: package.json
Core Features
The Ever Gauzy platform offers a wide range of features accessible through the gauzy web application:
- Human Resources Management (HRM)
- Customer Relationship Management (CRM)
- Enterprise Resource Planning (ERP)
- Project & Task Management
- Time Tracking, Activity Tracking, and Timesheets
- Sales Pipelines and Proposals
- Accounting, Invoicing, and Estimates
- Inventory and Equipment Management
- Multi-organization and Multi-currency support
- Role-based Permissions
- Integrations (e.g., Upwork, HubStaff)
Sources: README.md
Modularity and Plugins
A key architectural aspect of the gauzy application is its modularity, achieved through a plugin system. UI features are often encapsulated in separate Nx libraries (packages) that can be integrated into the main application. This makes the system extensible and easier to maintain.
Examples of such UI plugins include:
@gauzy/plugin-job-proposal-ui@gauzy/plugin-public-layout-ui@gauzy/plugin-integration-upwork-ui@gauzy/plugin-integration-make-com-ui
The build process compiles these plugins, and they are then dynamically or statically loaded by the main gauzy application.
This diagram illustrates how the central web application integrates various UI plugins to extend its functionality.
Sources: package.json, packages/plugins/job-proposal-ui/package.json, packages/plugins/public-layout-ui/package.json, packages/plugins/legal-ui/package.json, packages/plugins/maintenance-ui/package.json
Deployment and Execution
The gauzy application can be deployed in various ways to suit different needs, from local development to a full production setup.
Local Development
To run the application manually for development:
- Install dependencies:
yarn bootstrap - Run the start script:
yarn start - Access the UI at
http://localhost:4200and the API athttp://localhost:3000/api.
Docker
For a more streamlined setup, Docker Compose is recommended. Different compose files are provided:
docker-compose.demo.yml: A minimal setup for demonstration purposes.docker-compose.yml: A production-ready setup that includes infrastructure dependencies like PostgreSQL, Redis, and OpenSearch.docker-compose.build.yml: Builds the Docker images from the local source code.
Live Environments
The platform is also available on several public-facing environments:
- SaaS:
https://app.gauzy.co - Demo:
https://demo.gauzy.co - Staging:
https://stage.gauzy.co
Sources: README.md
Conclusion
The gauzy web application is the cornerstone of the Ever Gauzy user experience. Built with Angular and a rich ecosystem of libraries, it provides a powerful and extensible interface for the platform's business management capabilities. Its modular, plugin-based architecture allows for continuous evolution, while its flexible deployment options cater to a wide range of users, from individual developers to enterprise-level production environments.