How maxi2771/nexoinventory works
Project type and purpose
• NexoInventory is a full-stack, single-page web application for real-time inventory management.
• Built with React (Vite) on the front end and Supabase (PostgreSQL + Auth + real-time APIs) on the back end.
File structure
• Top-level:
• src/ — front-end application code
• src/pages/ — route-level components (Dashboard, Login, Productos, Movimientos)
• src/components/ — reusable UI components (tables, modals, charts, forms)
• src/Contexts/ — React Context providers for global state (User, Productos, Movimientos)
• src/services/ — integration with Supabase (supabaseClient.js)
• config files: vite.config.js, tailwind.config.js, eslint.config.js
• Deployment: docs/ serves production build (Netlify continuous deployment)
Key insights from the README
• Uses React Router for client-side navigation with protected routes
• Context API + custom hooks (useFetch) manage data fetching and state
• Formik + Yup handle form state and validation
• Chart.js (via react-chartjs-2) for interactive charts on the Dashboard
• Supabase provides authentication, real-time data updates, and PostgreSQL storage
• Server-side pagination and filtering against the Supabase DB