This guide will help you get started with contributing to TelDrive.
- Go (1.19 or later)
- Node.js (for semver dependency)
- Git
- Make
- PowerShell (for Windows) or Bash (for Unix-like systems)
- Clone the repository:
git clone https://github.com/tgdrive/teldrive.git
cd teldrive
- Install dependencies:
make deps
To build both frontend and backend:
make build
The frontend is managed in a separate repository (teldrive-ui). The main repository pulls the latest frontend release during build.
To set up the frontend:
make frontend
To build the backend only:
make backend
After building, run the application:
make run
- Create a new branch for your feature:
git checkout -b feature/your-feature-name
- Generate API Spec:
make gen
We follow semantic versioning (MAJOR.MINOR.PATCH):
- For bug fixes:
make patch-version
- For new features:
make minor-version
- For breaking changes:
make major-version
-
Branch Naming:
feature/
for new featuresfix/
for bug fixesdocs/
for documentation changesrefactor/
for code refactoring
-
Commit Messages:
- Use clear, descriptive commit messages
- Reference issues when applicable
-
Pull Request Description:
- Describe the changes made
- Include any relevant issue numbers
- List any breaking changes