How arthur-manoel/erp-goia works
ERP Goia is a multi-company ERP scaffold built as a single Next.js App Router application, with server-side Prisma access to MySQL and no separate backend. The intended user workflow spans administration and master data into products, purchasing and receiving, inventory, production, and sales. The sampled pages are mostly placeholders, so the graph represents those as product stages rather than implying implemented business logic; unsampled workflows and database interactions are documented capabilities, not inspected implementations.
Main entry points: page-header.tsx Page header · em-construcao.tsx Under-construction view · layout.tsx App layouts · admin Administration
Components 18
Application shell
- App layouts
src/app/(app)/layout.tsx - Navigation map
src/config/navegacao.ts - App sidebar
src/components/layout/app-sidebar.tsx - Login screen
src/app/(auth)/login/page.tsx
Shared foundation
- Page header
src/components/layout/page-header.tsx - Under-construction view
src/components/layout/em-construcao.tsx - Session helper
src/lib/sessao.ts - Prisma client
src/lib/prisma.ts
Administration and master data
- Administration
src/app/(app)/admin - Business registers
src/app/(app)/cadastros - Products and recipes
src/app/(app)/produtos
ERP operations
- Inventory
src/app/(app)/estoque - Purchasing
src/app/(app)/compras - Invoice receiving
src/app/(app)/notas-fiscais/page.tsx - Production
src/app/(app)/producao - Sales
src/app/(app)/vendas/page.tsx
Other components
- ERP user
- MySQL database
Connections 20
- ERP user → Login screen: signs in
README.md - ERP user → App layouts: uses ERP
README.md - App layouts → App sidebar: displays
- App sidebar → Navigation map: reads routes
src/components/layout/app-sidebar.tsx - Administration → Page header: renders
src/app/(app)/admin/setores/page.tsx - Administration → Under-construction view: renders
src/app/(app)/admin/setores/page.tsx - Products and recipes → Page header: renders
src/app/(app)/produtos/page.tsx - Products and recipes → Under-construction view: renders
src/app/(app)/produtos/page.tsx - Inventory → Page header: renders
src/app/(app)/estoque/page.tsx - Inventory → Under-construction view: renders
src/app/(app)/estoque/page.tsx - Purchasing → Page header: renders
src/app/(app)/compras/requisicoes/page.tsx - Purchasing → Under-construction view: renders
src/app/(app)/compras/requisicoes/page.tsx - Invoice receiving → Page header: renders
src/app/(app)/notas-fiscais/page.tsx - Invoice receiving → Under-construction view: renders
src/app/(app)/notas-fiscais/page.tsx - Sales → Page header: renders
src/app/(app)/vendas/page.tsx - Sales → Under-construction view: renders
src/app/(app)/vendas/page.tsx - Production → Page header: renders
src/app/(app)/producao/ordens/page.tsx - Production → Under-construction view: renders
src/app/(app)/producao/ordens/page.tsx - App layouts → Prisma client: accesses through
- Prisma client → MySQL database: queries
README.md