How nelsondarosa/ft_machry works
This is a Flask API for product lookup, inventory visibility, and production-request details. Clients call the registered feature endpoints; each route queries SQLite through the shared database helper and returns rows as JSON. The helper opens per-request connections and also provides a CLI command to initialize the database, optionally loading seed data. The excerpts establish these API and database paths, but the README is empty and the SQL contents were not shown, so schema-level behavior and additional capabilities cannot be confirmed.
Main entry points: db.py DB connections · __init__.py Flask app · produtos/routes.py Product listing · estoque/routes.py Inventory views
Components 10
API application
- Flask app
app/__init__.py - DB configuration
app/config.py
Product features
- Product listing
app/features/produtos/routes.py - Inventory views
app/features/estoque/routes.py - Production requests
app/features/producao/routes.py
Persistence
- DB connections
app/db.py - SQLite database
- Database schema
db/schema.sql - Seed data
db/seeds.sql
Other components
- API client
Connections 11
- API client → Flask app: calls API
app/__init__.py - Flask app → DB configuration: loads settings
app/__init__.py - Flask app → Product listing: registers routes
app/__init__.py - Flask app → Inventory views: registers routes
app/__init__.py - Flask app → Production requests: registers routes
app/__init__.py - Product listing → DB connections: queries via
app/features/produtos/routes.py - Inventory views → DB connections: queries via
app/features/estoque/routes.py - Production requests → DB connections: queries via
app/features/producao/routes.py - DB connections → SQLite database: opens connection
app/db.py - DB connections → Database schema: loads schema
app/db.py - DB connections → Seed data: optionally loads
app/db.py