normogen/docs/development
goose ef58c77d9c
Some checks failed
Lint, Build, and Docker / Check Code Formatting (push) Failing after 42s
Lint, Build, and Docker / Run Clippy Linter (push) Failing after 2s
Lint, Build, and Docker / Build Rust Binary (push) Has been skipped
Lint, Build, and Docker / Build Docker Image (push) Has been skipped
Lint, Build, and Docker / CI Summary (push) Failing after 1s
feat(ci): add format check, PR validation, and Docker buildx
- Add cargo fmt --check to enforce code formatting
- Add pull_request trigger for PR validation
- Split workflow into parallel jobs (format, clippy, build, docker)
- Integrate Docker Buildx with DinD service
- Add BuildKit caching for faster builds
- Add local test script (scripts/test-ci-locally.sh)
- Add comprehensive documentation

All local CI checks pass 
2026-03-17 10:44:42 -03:00
..
CI-IMPROVEMENTS.md feat(ci): add format check, PR validation, and Docker buildx 2026-03-17 10:44:42 -03:00
CI-QUICK-REFERENCE.md feat(ci): add format check, PR validation, and Docker buildx 2026-03-17 10:44:42 -03:00
COMMIT-INSTRUCTIONS.txt docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
COMMIT-NOW.sh docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
commit_message.txt docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
FORGEJO-CI-CD-PIPELINE.md docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
FORGEJO-RUNNER-UPDATE.md docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
GIT-COMMAND.txt docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
GIT-LOG.md docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
GIT-STATUS.md docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
GIT-STATUS.txt docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00
README.md docs(ai): reorganize documentation and update product docs 2026-03-09 11:04:44 -03:00

Development Documentation

This section contains development workflow documentation, Git guidelines, and CI/CD configuration.

📚 Workflow Documentation

Git Workflow

Commit Guidelines

🔄 CI/CD

Forgejo Configuration

🌳 Branch Strategy

Main Branches

  • main - Production-ready code
  • develop - Integration branch for features
  • feature/* - Feature branches

Branch Naming

  • feature/phase-2.8-drug-interactions
  • fix/docker-networking
  • docs/reorganize-documentation

📝 Commit Message Format

Conventional Commits

<type>(<scope>): <description>

[optional body]

[optional footer]

Types

  • feat - New feature
  • fix - Bug fix
  • docs - Documentation changes
  • test - Test changes
  • refactor - Code refactoring
  • chore - Maintenance tasks

Examples

feat(backend): implement drug interaction checking
fix(medication): resolve adherence calculation bug
docs(readme): update quick start guide
test(auth): add refresh token rotation tests

🚀 Development Workflow

1. Create Feature Branch

git checkout -b feature/your-feature-name

2. Make Changes

# Write code
cargo test
cargo clippy

3. Commit Changes

git add .
git commit -m "feat(scope): description"

Or use the quick commit script:

./docs/development/COMMIT-NOW.sh

4. Push and Create PR

git push origin feature/your-feature-name
# Create PR in Forgejo

5. Merge and Cleanup

git checkout develop
git pull
git branch -d feature/your-feature-name

🛠️ Development Tools

Backend (Rust)

  • Build: cargo build
  • Test: cargo test
  • Lint: cargo clippy
  • Format: cargo fmt
  • Run: cargo run

Frontend (React)

  • Install: npm install
  • Start: npm start
  • Build: npm run build
  • Test: npm test

Docker

  • Build: docker compose build
  • Up: docker compose up -d
  • Down: docker compose down
  • Logs: docker compose logs -f

📋 Code Review Checklist

Before Committing

  • Code compiles without errors
  • All tests pass
  • No clippy warnings
  • Code is formatted
  • Commit message follows conventions
  • Documentation updated if needed

Before PR

  • All checks pass
  • No merge conflicts
  • Description explains changes
  • Tests added/updated
  • Ready for review

Last Updated: 2026-03-09