Please read and follow the Code of Conduct before participating in issues, pull requests, discussions, and review threads.
- Fork the repository
- Clone your fork:
git clone https://github.com/AptS-1547/AsterDriveMigration.git cd AsterDriveMigration - Build and run:
# Frontend cd frontend-panel && bun install && bun run build && cd .. # Backend cargo run
feat/<description>- New featuresfix/<description>- Bug fixesrefactor/<description>- Refactoringdocs/<description>- Documentation
Use conventional commits:
feat(storage): add S3 driver support
fix(auth): handle expired refresh token correctly
refactor(api): simplify error response format
docs: update API endpoint documentation
# Backend checks
cargo check
cargo test --test api_integration
cargo clippy -- -D warnings
# Frontend checks
cd frontend-panel
bun run check
bun run build- Internal:
AsterErrorwith string codes (E001-E040) for logging/debugging - API:
ErrorCodewith numeric codes grouped by domain (0=success, 1000=general, 2000=auth, 3000=file, 4000=policy, 5000=folder)
- All DB enum fields use
DeriveActiveEnum(UserRole, UserStatus, DriverType) - No magic strings for enum values
TokenTypeis a plain Rust enum (not stored in DB)
- Each module exports
pub fn routes()returningScopeorimpl HttpServiceFactory - Use
impl HttpServiceFactorywhen.wrap()is needed - Frontend routes registered last (SPA fallback)
{ "code": 0, "msg": "", "data": { ... } }
{ "code": 2000, "msg": "Invalid Credentials" }- Type checking:
tsgo(native-preview), nottsc - Linting:
biome, not ESLint - No TS enums (
erasableSyntaxOnly), useas constobjects - Type imports must use
import type(verbatimModuleSyntax) - shadcn/ui components use
renderprop (notasChild)
See docs/architecture.md for detailed architecture documentation.
By contributing, you agree that your contributions will be licensed under the MIT License.