mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-09-03 21:14:28 +08:00
1.7 KiB
1.7 KiB
Contributing to TelDrive
This guide will help you get started with contributing to TelDrive.
Development Setup
Prerequisites
- Go (1.22 or later)
- Git
- Task
- PowerShell (for Windows) or Bash (for Unix-like systems)
Install Task
macOS/Linux (curl)
curl https://instl.vercel.app/go-task/task | bash
PowerShell/cmd.exe
powershell -c "irm https://instl.vercel.app/go-task/task?platform=windows|iex"
Initial Setup
- Clone the repository:
git clone https://github.com/tgdrive/teldrive.git
cd teldrive
- Install dependencies:
task deps
Building TelDrive
Complete Build
To build both frontend and backend:
task
Frontend Development
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:
task ui
Backend Development
To build the backend only:
task server
Running TelDrive
After building, run the application:
task run
Feature Development
- Create a new branch for your feature:
git checkout -b feature/your-feature-name
- Generate API Spec:
task gen
Pull Request Guidelines
-
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