FletBatteries is a set of framework-like tools designed to simplify the development of applications with Flet. This project provides a user-friendly and highly customizable environment, ideal for developers looking to create applications efficiently and quickly
- View routing system.
- Modular and extensible architecture.
- Modern and responsive UI with Flet.
- Python 3.11+
- pip
-
Clone this repository:
git clone https://github.com/Solvosoft/fletbatteries.git cd fletbatteries -
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate -
Install dependencies:
make requirements
-
Database init:
make init_db
-
Run API
uvicorn scripts.api:app --reload --app-dir src
Si no tiene una base de datos
Run the Flet application:
make runThis will open a window where you can:
- Start the project
- Create and test views
template/
├── .venv/ # Virtual environment
├── src/ # Main source code
│ ├── assets/ # Static assets
│ │ ├── image/ # Images used in the app
│ │ ├── fonts/ # Fonts used in the app
│ │ └── fontawesome/ # Icons used in the app
│ ├── components/ # Reusable components
│ │ ├── layout/ # General layout and design
│ │ └── share/ # Shared components
│ ├── controls/ # Control logic and validation
│ │ ├── handler/ # Logic for view handling
│ │ └── router/ # Custom routing logic
│ ├── data/ # Data handling
│ │ ├── models/ # Data models and schemas
│ │ └── manager/ # CRUD operations
│ ├── views/ # Visual logic and UI views
│ │ └── main.py # App entry point
│ └── scripts/ # App scripts
├── .gitignore # Git ignore rules
├── Makefile # Automation tasks
├── README.md # Project documentation
└── requirements.txt # Project dependencies
- Flet (documentation): https://flet.dev/docs/