Contributing Guide
Relevant source files
The following files were used as context for generating this wiki page:
This guide provides instructions and best practices for contributing to the Ever Gauzy platform. Whether you are fixing a bug, adding a new feature, or improving documentation, following these guidelines helps ensure a smooth and effective collaboration process. The platform is an open business management solution encompassing ERP, CRM, and HRM functionalities, and contributions from the community are highly valued.
Contributions can range from submitting feature requests and bug reports to writing code for pull requests. All pull requests should be based against the develop branch. For substantial changes, it is recommended to open an issue first to discuss the proposed changes with the maintainers.
Sources: README.md:630-633
Getting Started
Before you can start contributing, you need to set up your local development environment. The project uses Node.js, Yarn for package management, and Nx for monorepo orchestration.
Sources: README.md:213-228
Prerequisites
- Node.js: LTS version or later (e.g., 20.x).
- Yarn: Can be installed globally via
npm i -g yarn.
Sources: README.md:214-215, package.json:1003-1004
Installation and Setup
- Clone the repository.
- Install all dependencies and bootstrap the monorepo using the
yarn bootstrapcommand. This script handles the installation and any necessary post-install steps. - If you plan to commit code, set up Git hooks with
yarn prepare:husky. This will enable pre-commit checks for linting and commit message formatting. - Configure your local environment by copying
.env.sampleto.envand adjusting settings like database connections. For local runs, the project uses.env.local. - Start the API and the UI together with
yarn start.
Sources: README.md:216-228, package.json:20-21, 38
The initial setup process is visualized below.
This diagram shows the basic steps to get the Gauzy development environment up and running.
Sources: README.md:213-228, package.json:20-21, 38
Development Workflow
Contributions should follow a standard Git workflow to ensure code quality and maintain a clean history. All pull requests must be based on the develop branch.
Sources: README.md:632-633
Key Scripts
The package.json file contains numerous scripts to aid in development. Here are some of the most important ones:
| Script | Description |
|---|---|
yarn start | Runs both the API and the frontend UI for local development. |
yarn test | Executes the test suite for the entire project. |
yarn lint | Runs the linter to check for code style issues. |
yarn format | Automatically formats the code using Prettier. |
yarn commit | Starts an interactive prompt (git-cz) to create a conventional commit message. |
yarn build | Builds all applications and packages in the monorepo. |
Sources: package.json:22, 41, 42, 46, 49, 39
Contribution Flow
The following diagram illustrates the recommended workflow for submitting a code contribution.
This diagram outlines the end-to-end process for contributing code, from local setup to a merged pull request.
Sources: README.md:632-633, package.json:41-42, 49
Example: Adding a New MCP Tool
A practical example of a contribution is adding a new tool to the MCP (Model Context Protocol) server.
- Create Tool: Implement the new tool in the
packages/mcp-server/src/lib/tools/directory. - Register Tool: Add the new tool to the
McpServerclass inpackages/mcp-server/src/lib/mcp-server.ts. - Build and Test: Run
yarn nx build mcp-serverandyarn nx test mcp-serverto ensure everything works correctly. - Submit PR: Follow the standard development workflow to submit your changes.
Sources: packages/mcp-server/README.md:200-226
Commit Message Guidelines
This project follows the Conventional Commits specification. This is enforced by commitlint through a Husky commit-msg hook. Using yarn commit is recommended to ensure your commit messages are formatted correctly.
Sources: package.json:49, 89-91
The commit validation process is automated using Husky and commitlint.
This sequence diagram shows how commit messages are automatically validated before being accepted.
Sources: package.json:92-95
Commit Message Format
A commit message consists of a header, an optional body, and an optional footer.
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
Commit Types
The following types are allowed in commit messages:
| Type | Description |
|---|---|
feat | A new feature |
fix | A bug fix |
docs | Documentation only changes |
style | Changes that do not affect the meaning of the code (white-space, formatting, etc) |
refactor | A code change that neither fixes a bug nor adds a feature |
perf | A code change that improves performance |
test | Adding missing tests or correcting existing tests |
build | Changes that affect the build system or external dependencies |
ci | Changes to our CI configuration files and scripts |
chore | Other changes that don't modify src or test files |
revert | Reverts a previous commit |
Sources: commitlint.config.js
Licensing
The Ever Gauzy platform is available under multiple licenses. By default, contributions are made under the Community Edition License.
License Summary
| License | Type | Key Requirement |
|---|---|---|
| Community Edition | Open Source (AGPL-3.0) | Modified versions used over a network must have their source code made available. |
| Small Business | Commercial | For businesses with annual revenues up to $1 million. |
| Enterprise | Commercial | For businesses with annual revenues over $1 million. |
The default license for the project is the GNU Affero General Public License v3.0 (AGPL-3.0). This is a strong copyleft license, meaning any modifications you distribute or make available as a service must also be released under the same license.
For non-profit and open-source projects, a free Enterprise edition license and hosting may be available, subject to acceptance criteria.
Sources: LICENSES.md, README.md:594-610
Contact & Community
You can connect with the community and maintainers through various channels:
- Slack: Community Slack
- Discord: Discord Chat
- Gitter: Join Chat
- Feature Requests: Submit in the separate repo
- Security Issues: Report vulnerabilities to
security@ever.co.
Sources: README.md:562-572, 631
Summary
Contributing to Ever Gauzy is a straightforward process focused on collaboration and quality. By following the setup instructions, adhering to the development workflow and commit guidelines, and understanding the project's licensing, you can effectively contribute to the platform's growth. Remember to engage with the community for discussions and support.