How gabrielsilva0022/erp-de-estoque-simples works
This is a small Flask inventory-management web app. Users can register products, view and delete them, and open a report with a stock-quantity chart. The sampled app.py shows route handlers directly reading and writing SQLite, rendering templates, and generating the chart. The templates and stylesheet are listed in the tree but were not sampled, so their internal behavior and styling connections are not inferred.
Main entry points: app.py Stock report · estoque.db Inventory database · cadastrar.html Registration page · listar.html Product listing
Components 14
Inventory workflow
- Register product
app.py - List products
app.py - Delete product
app.py - Home route
app.py
Persistence
- Inventory database
estoque.db
Reporting and views
- Registration page
templates/cadastrar.html - Product listing
templates/listar.html - Home page
templates/index.html - Stock report
app.py - Matplotlib
- Generated chart
static - Report page
templates/relatorios.html - Stylesheet
static/style.css
Other components
- Browser user
Connections 15
- Browser user → Home route: requests home
app.py - Browser user → Register product: submits product
app.py - Browser user → List products: requests listing
app.py - Browser user → Delete product: requests deletion
app.py - Browser user → Stock report: requests report
app.py - Register product → Inventory database: inserts product
app.py - List products → Inventory database: reads products
app.py - Delete product → Inventory database: deletes product
app.py - Stock report → Inventory database: reads quantities
app.py - Home route → Home page: renders
app.py - Register product → Registration page: renders
app.py - List products → Product listing: renders
app.py - Stock report → Matplotlib: generates chart
app.py - Stock report → Generated chart: saves chart
app.py - Stock report → Report page: renders
app.py