How thiagops5/agro-nezer works
Nezer Agro is a mobile-first agricultural partnership and traceability product, with an Express/Sequelize API and a Next.js web app. Its principal domain workflow spans managing users, crops and plots; recording inputs, applications and harvests; and producing financial settlements and reports. The README also documents sanitary alerts and offline capture, but the supplied tree and excerpts do not expose their implementation. Relationships are limited to calls, database setup and authorization wiring shown in the supplied source; the API excerpt does not show route mounting.
Main entry points: talhao.service.js Plots · page.tsx Home page · db.js SQLite database · index.js API startup
Components 15
API and access
- User management
nezer-api/usuario/usuario.controller.js - Authentication
nezer-api/auth/auth.service.js - Access middleware
nezer-api/auth/auth.middleware.js - API startup
nezer-api/index.js - SQLite database
nezer-api/config/db.js
Farm records
- Plots
nezer-api/talhao/talhao.service.js - Crops
nezer-api/cultura/cultura.service.js - Agricultural inputs
nezer-api/insumo/insumo.service.js
Operations and outcomes
- Input applications
nezer-api/aplicacao/aplicacao.service.js - Harvest records
nezer-api/colheita/colheita.service.js - Financial settlement
nezer-api/acerto/acerto.service.js - Reports
nezer-api/relatorio/relatorio.service.js
Web app
- Web layout
nezer-app/app/layout.tsx - Home page
nezer-app/app/page.tsx
Other components
- Farm user
Connections 9
- Farm user → Home page: uses
README.md - Home page → Web layout: renders within
nezer-app/app/layout.tsx - API startup → SQLite database: syncs
nezer-api/index.js - Plots → SQLite database: uses models
- Plots → Crops: includes
nezer-api/talhao/talhao.service.js - Plots → User management: includes
nezer-api/talhao/talhao.service.js - Plots → Input applications: checks records
nezer-api/talhao/talhao.service.js - Plots → Harvest records: checks records
nezer-api/talhao/talhao.service.js - Plots → Financial settlement: checks records
nezer-api/talhao/talhao.service.js