graph TB
subgraph "Frontend Layer"
A[Next.js Web App] --> B[API Gateway]
end
subgraph "Backend Services"
B --> C[FastAPI Server]
C --> D[Price Service]
C --> E[User Service]
C --> F[Order Service]
end
subgraph "Data Layer"
D & E & F --> G[PostgreSQL]
D & E & F --> H[Redis Cache]
F --> I[MinIO Storage]
end
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
style E fill:#64a6f1
style F fill:#64a6f1
style G fill:#64a6f1
style H fill:#64a6f1
style I fill:#64a6f1
sequenceDiagram
participant User
participant Frontend
participant Backend
participant Cache
participant Database
User->>Frontend: View Flower Prices
Frontend->>Backend: Request Prices
Backend->>Cache: Check Cache
alt Cache Hit
Cache-->>Backend: Return Cached Prices
else Cache Miss
Backend->>Database: Query Prices
Database-->>Backend: Price Data
Backend->>Cache: Update Cache
end
Backend-->>Frontend: Price Data
Frontend-->>User: Display Prices
graph TD
subgraph "Frontend Components"
A[Pages] --> B[Components]
B --> C[Price Display]
B --> D[User Dashboard]
B --> E[Order Management]
end
subgraph "State Management"
F[Redux Store] --> G[Price State]
F --> H[User State]
F --> I[Order State]
end
A --> F
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
style E fill:#64a6f1
style F fill:#64a6f1
style G fill:#64a6f1
style H fill:#64a6f1
style I fill:#64a6f1
FlowerMarket.io/
βββ frontend/ # Next.js Frontend
β βββ app/ # App Router Pages
β βββ components/ # React Components
β βββ store/ # Redux Store
βββ backend/ # FastAPI Backend
β βββ services/ # Business Logic
β βββ models/ # Data Models
β βββ api/ # API Routes
βββ infrastructure/ # Docker & Deploy Configs
sequenceDiagram
participant User
participant Frontend
participant Auth Service
participant Database
User->>Frontend: Login Request
Frontend->>Auth Service: Authenticate
Auth Service->>Database: Verify Credentials
Database-->>Auth Service: User Data
Auth Service-->>Frontend: JWT Token
Frontend-->>User: Access Granted
# Clone and setup
git clone https://github.com/flowermarket/platform
cd platform
# Development
docker-compose up
# Production
docker-compose -f deploy-docker-compose.yml upgraph LR
A[Browse Flowers] --> B[Real-time Prices]
B --> C[Place Order]
C --> D[Track Delivery]
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
graph LR
A[List Flowers] --> B[Manage Inventory]
B --> C[Process Orders]
C --> D[Analytics]
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
graph TD
A[Performance Metrics] --> B[Lighthouse Score: 98]
A --> C[SEO Score: 100]
A --> D[Accessibility: 100]
A --> E[Best Practices: 95]
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
style E fill:#64a6f1
graph LR
A[Code] --> B[Test]
B --> C[Review]
C --> D[Deploy]
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
graph TD
A[2024 Q1] --> B[AI Price Predictions]
A[2024 Q2] --> C[Blockchain Payments]
A[2024 Q3] --> D[Multi-language]
A[2024 Q4] --> E[IoT Integration]
style A fill:#64a6f1
style B fill:#64a6f1
style C fill:#64a6f1
style D fill:#64a6f1
style E fill:#64a6f1
- Email: alpahamoris45@gmail.com
Building the future of flower trading, one bloom at a time πΈ
