This repository contains a Next.js application for managing commodities, featuring role-based access control, authentication, and a modern UI with light/dark mode. It includes secure login, form validation, session persistence, and protected routes.
From the README
Commodities Management System A production-ready Next.js application for managing commodities with role-based access control, authentication, and a modern UI with light/dark mode support. 🎯 Features ✅ Authentication & Authorization • Login System: Secure authentication with email/password • Form Validation: React Hook Form + Zod validation • Session Persistence: localStorage-based session management • Role-Based Access Control (RBAC): Manager and Store Keeper roles • Protected Routes: Route-level protection with automatic redirects ✅ Dashboard (Manager Only) • Real-time statistics from GraphQL API • Total Products count • Low Stock Items alert • Total Categories count • Loading and...
Skills
- TypeScript
- CSS
- JavaScript