You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A production-grade, idiomatic Node.js (Express + TypeScript) REST API for 3Z Insta Cart, an instant grocery & e-commerce shopping platform matching the full functionality, error schemas, and business rules of the Spring Boot and Python/Flask editions.
🚀 Key Features
Product Catalog & Inventory:
Full CRUD operations with category filtering, keyword search, stock tracking, and pricing.
Pre-seeded with 12 instant grocery items across categories (PRODUCE, DAIRY_EGGS, BAKERY, BEVERAGES, SNACKS, PANTRY, MEAT_SEAFOOD).
3Z Insta Cart Shopping Engine:
Add items to cart with automatic duplicate item quantity consolidation.
Real-time stock validation and error handling.
Dynamic financial computation: subtotal, 7% sales tax, and tiered delivery fee ($3.99, free on orders over $35.00).
Atomic Checkout & Order Management:
Validates stock availability and deducts inventory atomically at checkout via SQLite transactions.
Unique order tracking generation (3Z-YYYYMMDDHHMMSS-XXXX).
Order status tracking (PENDING -> CONFIRMED -> PREPARING -> OUT_FOR_DELIVERY -> DELIVERED).
Interactive Documentation & Observability:
OpenAPI / Swagger UI at http://localhost:8080/swagger-ui.html.
OpenAPI JSON Spec at http://localhost:8080/v3/api-docs.
Health checks at http://localhost:8080/actuator/health and http://localhost:8080/health.