AI-Ready Marketplace Platform β Vue 3 + TypeScript frontend with Agentic Commerce UI
Part of the Kodex open-source marketplace platform built entirely using AI tools under the GRACE methodology.
- Infinite Scroll Catalog β Seamless browsing with 100+ products
- Product Detail Modal β Sortable offers by price or delivery date
- Natural Language Search β Agent-powered product discovery
- Voice Search β Web Speech API integration with graceful fallback
- Admin Panel β Full CRUD for products and offers
- JWT Authentication β Secure admin access
- Feature-Sliced Design β Scalable, maintainable architecture
| Component | Technology |
|---|---|
| Framework | Vue 3.5.x |
| Language | TypeScript 5.x |
| Build Tool | Vite 6.x |
| Router | Vue Router 4.x |
| State | Pinia 2.x |
| HTTP Client | Axios 1.x |
| Testing | Vitest 2.x |
| Linting | ESLint 9.x |
# From the kodex-infra directory
cd ../kodex-infra
docker compose up --buildFrontend will be available at http://localhost:5173
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit VITE_API_BASE_URL=http://localhost:8000
# Start dev server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview# Run tests
npm run test # vitest run
npm run test:coverage # vitest run --coverage
# Type checking
npm run type-check # vue-tsc --noEmit
# Linting
npm run lint # eslint .
npm run lint:fix # eslint . --fixsrc/
βββ app/ # Application bootstrap
β βββ App.vue # Root component
β βββ router.ts # Vue Router configuration
β βββ index.ts # App entry point
β
βββ pages/ # Route-level components
β βββ catalog/ # Catalog page (infinite scroll)
β βββ product/ # Product detail modal
β βββ admin/ # Admin panel + login
β
βββ widgets/ # Composite components
β βββ product-card/ # ProductCard component
β βββ product-modal/ # ProductModal with offers
β βββ products-table/ # Admin products table
β
βββ features/ # User actions & interactions
β βββ infinite-scroll/ # useInfiniteScroll composable
β βββ product-sort/ # useSortOffers composable
β βββ voice-search/ # useVoiceSearch composable
β βββ admin-auth/ # useAdminAuth composable
β
βββ entities/ # Domain models & API calls
β βββ product/ # Product types + API
β βββ offer/ # Offer types + API
β βββ seller/ # Seller types
β
βββ shared/ # Shared utilities
βββ api/ # Axios client + API methods
βββ ui/ # Reusable UI components
βββ lib/ # Utility functions
βββ styles/ # Global styles & tokens
- Each layer may only import from layers below it
- Cross-slice internal imports are forbidden (ESLint enforced)
- Public API only β import through
index.tsfiles
| Component | Description |
|---|---|
Button |
Primary/secondary/ghost variants |
Badge |
Status badges (success, warning, error) |
Spinner |
Loading indicator with customizable size |
| Component | Description |
|---|---|
ProductCard |
Product image, title, price, delivery date |
ProductModal |
Full product detail with sortable offers |
ProductsTable |
Admin table with CRUD actions |
The frontend integrates with the backend's Agent layer for natural language search:
import { agentSearch } from '@/shared/api/agentApi'
const results = await agentSearch('cheap laptops delivered tomorrow')See docs/ai/AI_WORKFLOW.md for the complete AI integration methodology.
This project was built 100% with AI coding assistants under human engineering supervision:
| Category | Tools |
|---|---|
| AI IDEs | Antigravity / VS Code |
| Code Editors | VS Code / Kilo Code / QwenCode / Codex |
| LLM Models | Claude / Gemini / Qwen / GLM-5/5.1 |
- GRACE (Graph-RAG Anchored Code Engineering) β Contract-first development with semantic markup
- Human-in-the-Loop β All AI-generated code reviewed and validated by senior engineer
- Verification-Driven β Every module has contracts, tests, and knowledge graph links
| Variable | Description | Default |
|---|---|---|
VITE_API_BASE_URL |
Backend API URL | http://localhost:8000 |
This project is licensed under the MIT License β see the LICENSE file for details.
- kodex-marketplace-backend β FastAPI backend
- kodex-marketplace-stack β Docker Compose infrastructure
- AI Workflow β Complete AI development log
- Prompts β Prompt library used for AI generation
- Session Exports β Cursor session exports
- TypeScript strict mode β Full type safety
- ESLint + Prettier β Consistent code style
- Component specs β
.spec.tsfiles for unit tests - Composables β Reusable logic with
.test.tscoverage - No internal slice access β Features cannot import other features' internals
| UC | Description | Status |
|---|---|---|
| UC-001 | Browse catalog with infinite scroll | β |
| UC-002 | Product detail with sortable offers | β |
| UC-003 | Admin JWT authentication | β |
| UC-004 | Admin catalog CRUD | β |
| UC-005 | Seed script integration | β |
| UC-006 | Agent search with NL parsing | β |
Built with β€οΈ using AI + Human Engineering Supervision