Skip to content

🎯 FakeShop – A minimalist e-commerce showcase app built with Flet and FletX. πŸ›οΈ Sell items like stickers, t-shirts, hoodies, and caps in a clean, responsive interface β€” deployable on desktop, web, and mobile β€” all using Python only!

Notifications You must be signed in to change notification settings

AllDotPy/fake-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

fake-store.mp4

Fakeshop

🎯 FletXShop – A minimalist e-commerce showcase app built with Flet and FletX.

πŸ›οΈ Sell items like stickers, t-shirts, hoodies, and caps in a clean, responsive interface β€” deployable on desktop, web, and mobile β€” all using Python only!

πŸ”₯ This app was developed as an advanced example of FletX usage and will be presented at PyCon Togo 2025 as part of a live demo.

πŸ“¦ Key features:

  • Multi-platform support (Web, Desktop, Mobile)
  • Dynamic routing & state management with FletX
  • Clean UI built with Flet controls
  • Easy-to-extend project structure

About

This is a FletX application built with FletX a GetX-like tiny framework for Python and Flet. FletX provides state management, dependency injection, and routing capabilities similar to GetX in Flutter.

Features

  • πŸš€ Fast Development: Hot reload and rapid prototyping
  • πŸ—οΈ Clean Architecture: Separation of concerns with controllers, views, and services
  • πŸ’‰ Dependency Injection: Automatic dependency management
  • πŸ”„ State Management: Reactive state management with automatic UI updates
  • πŸ—ΊοΈ Routing: Declarative routing with named routes
  • πŸ“± Cross-platform: Run on web, desktop, and mobile

Project Structure

fakeShop/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ controllers/     # Business logic controllers
β”‚   β”œβ”€β”€ services/       # Business services and API calls
β”‚   β”œβ”€β”€ models/         # Data models
β”‚   β”œβ”€β”€ components/     # Reusable widgets
β”‚   β”œβ”€β”€ pages/          # Application pages
β”‚   └── routes.py       # App routing modules
β”œβ”€β”€ assets/             # Static assets (images, fonts, etc.)
β”œβ”€β”€ tests/              # Test files
β”œβ”€β”€ .python-version     # Python dependencies
β”œβ”€β”€ pyproject.toml      # Python dependencies
β”œβ”€β”€ README.md           # Quick start README
└── main.py            # Application entry point

Getting Started πŸš€

Prerequisites

  • Python 3.12+
  • pip (Python package manager)

Installation

  1. Clone or download this project
  2. Install dependencies:
    # Using pip
    pip install -r requirements.txt
    
    # NOTE: you can use your favorite python package manager (uv, poetry, pipenv etc...)

Running the Application

# Run with FletX CLI (recommended)
fletx run

# Or run directly with Python
python main.py

# Run in web mode
fletx run --web

# Run in desktop mode
fletx run --desktop

# Run with custom host and port
fletx run --host 0.0.0.0 --port 8080

Development

Creating New Components

# Create a new controller
fletx generate controller UserController

# Create a new Page (Screen)
fletx generate page UserView

# Create a new service
fletx generate service ApiService

# Create a new Widget (Component)
fletx generate component TaskItem

Author

pro2015

Version

0.1.0

About

🎯 FakeShop – A minimalist e-commerce showcase app built with Flet and FletX. πŸ›οΈ Sell items like stickers, t-shirts, hoodies, and caps in a clean, responsive interface β€” deployable on desktop, web, and mobile β€” all using Python only!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages