Model First Order
C+ 71 completedPipeline State
completedPipeline Metadata
AI Prompt
Catalog Information
A Rust REST API for managing orders with a state machine and line items, generating a TypeScript client for front‑end use.
Description
This project implements a RESTful API in Rust that handles orders and their line items. Orders progress through a defined state machine (Draft → Confirmed → Shipped → Delivered, with cancellation options). Each line item includes product SKU, quantity, unit price, and a computed total. The API preserves numeric precision end‑to‑end using PostgreSQL NUMERIC and Rust BigDecimal. A code‑first pipeline generates OpenAPI documentation and a TypeScript client, enabling rapid front‑end integration. The system is designed for developers who need a reliable, type‑safe order management backend.
الوصف
يُقدِّم هذا المشروع واجهة برمجة تطبيقات REST مكتوبة بلغة Rust لإدارة الطلبات مع نظام حالة متسلسل يضم Draft → Confirmed → Shipped → Delivered مع إمكانية الإلغاء من Draft أو Confirmed. كل طلب يحتوي على عناصر طلب (Line Items) تتضمن SKU، الكمية، سعر الوحدة، وحساب إجمالي العنصر تلقائياً. يتم الحفاظ على الدقة الرقمية عبر قاعدة PostgreSQL NUMERIC 19,4، مع تحويلها إلى BigDecimal في Rust ثم إلى سلسلة JSON. يعتمد المشروع على منهجية Model‑First Development، حيث يُنشئ الكود نفسه قاعدة البيانات والواجهات، ثم يُولد وثائق OpenAPI وعميل TypeScript للواجهة الأمامية. يتيح ذلك مطوري الخلفية إنشاء واجهات موثوقة وسريعة، مع ضمان أن كل التغييرات في النموذج تنتقل تلقائياً إلى قاعدة البيانات والعميل. يُستهدف هذا النظام مطوري الواجهات الخلفية ومطوري التجارة الإلكترونية الذين يحتاجون إلى نظام إدارة طلبات متكامل مع قواعد صارمة للبيانات.
Novelty
7/10Tags
Technologies
Claude Models
Quality Score
Strengths
- Consistent naming conventions (snake_case)
- Low average code complexity \u2014 well-structured code
- Good security practices \u2014 no major issues detected
- Containerized deployment (Docker)
Weaknesses
- No LICENSE file \u2014 legal ambiguity for contributors
- No CI/CD configuration \u2014 manual testing and deployment
- 138 duplicate lines detected \u2014 consider DRY refactoring
Recommendations
- Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
- Add a linter configuration to enforce code style consistency
- Add a LICENSE file (MIT recommended for open source)
Security & Health
Languages
Frameworks
Concepts (2)
| Category | Name | Description | Confidence | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Provenance: Repobility (https://repobility.com) — every score reproducible from /scan/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| auto_description | Project Description | A Rust REST API for managing orders, built following the Model-First Development pipeline where code — not specs — is the source of truth. | 80% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| auto_category | Web Backend | web-backend | 70% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Embed Badge
Add to your README:
