็ฎไฝไธญๆ โข Features โข Quick Start โข Architecture โข Deployment
AutoRepo transforms vehicle maintenance tracking into an intuitive, developer-friendly experience by borrowing concepts from Git version control:
| Git Concept | AutoRepo Equivalent |
|---|---|
| Repository | Your Vehicle |
| Commit | Maintenance/Repair Record |
| Issue | Scheduled Maintenance Task |
| HEAD | Current Status (Mileage/Condition) |
Perfect for car enthusiasts who want to:
- Track every modification, repair, and maintenance
- Monitor total investment and cost breakdown
- Document with photos (up to 9 per record)
- Export professional PDF reports
- Never lose your vehicle's history
- Git-Style Timeline โ Visual commit history of all vehicle changes
- Multi-Vehicle Support โ Manage multiple cars in one app
- Cost Tracking โ Labor costs, parts fees, automatic totals
- Image Upload โ Up to 9 photos per maintenance record
- PDF Export โ Professional reports for insurance or resale
- Search & Filter โ By type, date range, mileage, or keywords
- Issue Tracking โ Plan maintenance tasks with priorities
- Dark Mode โ Auto-detects system preference
- Real-time Sync โ WeChat Cloud Run powered
- Secure โ JWT authentication, data isolation per user
- Native Feel โ Custom navigation, smooth animations
- Swipe Actions โ Swipe to delete vehicles and tasks
![]() Home |
![]() Home (Dark) |
![]() Add Vehicle |
![]() Vehicle Detail |
![]() Timeline |
![]() Add Record |
![]() Stats - Cost |
![]() Stats - Issues |
![]() Add Reminder |
![]() Settings |
![]() Help |
![]() PDF Export |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WeChat Mini Program โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Timeline โ โ Dashboard โ โ Settings โ โ
โ โ (Repo) โ โ (Stats) โ โ (Theme) โ โ
โ โโโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ โ โ
โ โโโโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโ โ
โ โ api.ts (HTTP Client) โ โ
โ โ โข JWT Auth โข Retry Logic โ โ
โ โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ wx.cloud.callContainer
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WeChat Cloud Run (Docker) โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ FastAPI Backend โ โ
โ โ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โ โ
โ โ โ /repos โ โ/commitsโ โ/issues โ โ /auth โ โ โ
โ โ โโโโโโฌโโโโ โโโโโโฌโโโโ โโโโโโฌโโโโ โโโโโโฌโโโโ โ โ
โ โ โโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโ โ โ
โ โ โ โ โ
โ โ โโโโโโโโโโดโโโโโโโโโ โ โ
โ โ โ MongoDB/Mock โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Layer | Technology |
|---|---|
| Frontend | TypeScript, SCSS, WeChat Mini Program |
| Backend | Python 3.9+, FastAPI, Pydantic |
| Database | MongoDB (Motor async driver) |
| Auth | JWT + WeChat Login |
| ReportLab (Chinese font support) | |
| Deployment | Docker, WeChat Cloud Run |
- Python 3.9+
- WeChat Developer Tools
- (Optional) Docker, MongoDB
# Clone the repository
git clone https://github.com/lecrix/auto-repo.git
cd auto-repo/backend
# Install dependencies
pip install -r requirements.txt
# Create .env file
cp .env.example .env
# Edit .env with your credentials
# Run development server
uvicorn main:app --reload --host 0.0.0.0 --port 8000Environment Variables (.env):
WECHAT_APPID=your_wechat_appid
WECHAT_SECRET=your_wechat_secret
JWT_SECRET=your-random-secret-key-at-least-32-characters
MONGO_URL=mongodb://localhost:27017 # Optional, defaults to MockDBWithout MongoDB, the system automatically uses MockDB (file-based) for local development.
- Open WeChat Developer Tools
- Import
miniprogram/directory - Set AppID (or use test mode)
- Update config in
miniprogram/config.ts:const CURRENT_MODE: 'dev' | 'device' | 'prod' = 'dev'
- Compile and preview
See docs/DEPLOY.md for detailed instructions.
Key Benefits:
- No domain registration/ICP required
- Auto-scaling (scale to zero when idle)
- Built-in HTTPS
- Direct internal network access
auto-repo/
โโโ backend/ # FastAPI Backend
โ โโโ main.py # App entrypoint
โ โโโ auth.py # JWT + WeChat login
โ โโโ routes.py # API endpoints
โ โโโ models.py # Pydantic schemas
โ โโโ database.py # MongoDB connection
โ โโโ mock_db.py # Development fallback DB
โ
โโโ miniprogram/ # WeChat Mini Program
โ โโโ pages/ # UI pages
โ โโโ components/ # Reusable components
โ โโโ services/ # API client, auth
โ
โโโ docs/ # Documentation
โ โโโ DEPLOY.md # Deployment guide
โ โโโ FEATURE_SUMMARY.md # Feature summary
โ โโโ TESTING_GUIDE.md # Testing guide
โ โโโ WORK_SUMMARY.md # Development history
โ
โโโ AGENTS.md # AI assistant guide
โโโ CONTRIBUTING.md # Contribution guide
| Endpoint | Method | Description |
|---|---|---|
/auth/login |
POST | WeChat code โ JWT token |
/repos |
GET/POST | List/Create vehicles |
/repos/{id} |
GET/PUT/DELETE | Vehicle CRUD |
/commits |
GET/POST | List/Create records |
/commits/{id} |
GET/PUT/DELETE | Record CRUD |
/repos/{id}/issues |
GET/POST | Maintenance tasks |
/issues/{id} |
GET/PATCH/DELETE | Task CRUD |
/repos/{id}/stats |
GET | Cost statistics |
/repos/{id}/export/pdf-base64 |
GET | PDF export |
Full API docs available at http://localhost:8000/docs when running locally.
- Core UI/UX & Backend Integration
- Multi-user Authentication
- Image Upload & PDF Export
- Data Visualization & Statistics
- WeChat Cloud Run Deployment
- Issue Detail Page & Swipe Actions
- OCR for Receipt Scanning
- Maintenance Reminders (Push Notifications)
- Social Sharing & Community Features
Contributions are welcome! Please read CONTRIBUTING.md first.
git checkout -b feature/amazing-feature
git commit -m 'Add amazing feature'
git push origin feature/amazing-feature
# Open a Pull RequestThis project is licensed under the MIT License - see the LICENSE file for details.
Made with love for car enthusiasts
Report Bug โข
Request Feature











