Skip to content

Alphamoris/FlowerMarket.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

99 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌸 FlowerMarket.io

FlowerMarket Logo

Modern Flower Market Platform with Real-time Updates

Next.js FastAPI TypeScript Docker

πŸ—οΈ System Architecture

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
Loading

πŸ”„ Real-time Price Update Flow

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
Loading

πŸ“± Application Components

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
Loading

πŸ“ Project Structure

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

πŸ”’ Authentication Flow

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
Loading

πŸš€ Quick Start

# Clone and setup
git clone https://github.com/flowermarket/platform
cd platform

# Development
docker-compose up

# Production
docker-compose -f deploy-docker-compose.yml up

πŸ”‘ Key Features

For Buyers

graph 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
Loading

For Sellers

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
Loading

πŸ“ˆ Performance Metrics

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
Loading

πŸ”„ Development Workflow

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
Loading

🌟 Future Roadmap

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
Loading

πŸ“ž Support


Building the future of flower trading, one bloom at a time 🌸

About

A Production ready website built using Nextjs and Fastapi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors