How nardoroman/inventario-app works
This is a MERN inventory application: users browse the product catalog, add products, edit them in a modal, or delete them; the React app updates its displayed state from API responses. The Express server routes CRUD requests to controllers, which use a validated Mongoose product model backed by MongoDB. The README also documents health and optional hosted-backend use. Relationships are limited to calls, registrations, and data exchanges visible in excerpts or explicitly documented; unsampled details are not inferred.
Main entry points: App.tsx Inventory dashboard · api.ts API client · product.ts Product contracts · ProductForm.tsx Product form
Components 15
Inventory interface
- Inventory dashboard
client/src/App.tsx - Navigation bar
client/src/components/Navbar.tsx - Product form
client/src/components/ProductForm.tsx - Product catalog
client/src/components/ProductList.tsx - Edit modal
client/src/components/EditModal.tsx - API client
client/src/services/api.ts - Product contracts
client/src/types/product.ts
REST backend
- Express server
server/src/server.ts - Product routes
server/src/routes/productRoutes.ts - Product controller
server/src/controllers/productController.ts
Product data
- Database connection
server/src/config/db.ts - Product schema
server/src/models/Product.ts - Initial product seed
server/src/seed.ts
Other components
- Inventory user
- MongoDB Atlas
Connections 20
- Inventory user → Inventory dashboard: uses
README.md - Inventory dashboard → Navigation bar: renders
client/src/App.tsx - Inventory dashboard → Product form: renders
client/src/App.tsx - Inventory dashboard → Product catalog: renders
client/src/App.tsx - Inventory dashboard → Edit modal: renders
client/src/App.tsx - Inventory dashboard → API client: loads and deletes
client/src/App.tsx - Product form → API client: creates via
client/src/components/ProductForm.tsx - Edit modal → API client: updates via
client/src/components/EditModal.tsx - Inventory dashboard → Product contracts: uses types
client/src/App.tsx - Product form → Product contracts: uses types
client/src/components/ProductForm.tsx - Product catalog → Product contracts: uses types
client/src/components/ProductList.tsx - Edit modal → Product contracts: uses types
client/src/components/EditModal.tsx - API client → Product contracts: uses types
client/src/services/api.ts - API client → Express server: sends REST requests
client/src/services/api.ts - Express server → Product routes: mounts routes
server/src/server.ts - Express server → Database connection: connects before listen
server/src/server.ts - Product routes → Product controller: dispatches requests
server/src/routes/productRoutes.ts - Product controller → Product schema: queries and writes
server/src/controllers/productController.ts - Database connection → MongoDB Atlas: connects to
server/src/config/db.ts - Initial product seed → Product schema: creates seed records
server/src/seed.ts