A comprehensive inventory management system built with Next.js, React, and TypeScript. This application manages the complete Procure-to-Pay (P2P) cycle including purchase requisitions, purchase orders, goods receipts, and stock management.
- Purchase Requisition Management - Create and approve purchase requests
- Purchase Order Processing - Generate and approve purchase orders
- Goods Receipt Management - Record incoming inventory
- Stock Management - Track inventory levels and issue stock
- Dashboard & Analytics - Visual overview of procurement metrics
- Comprehensive Reporting - Detailed registers for all transactions
- Modern React 19 with TypeScript
- Responsive UI with Tailwind CSS and Radix UI components
- Real-time data visualization with Recharts
- Supabase integration for data persistence
- AI-powered chatbot assistance
- QR code generation for inventory tracking
- Framework: Next.js 15.5.9
- Language: TypeScript
- UI Library: React 19.2.0
- Styling: Tailwind CSS
- Components: Radix UI
- Database: Supabase
- Charts: Recharts
- AI Integration: Vercel AI SDK with OpenAI
- Package Manager: pnpm
├── app/ # Next.js app directory
│ ├── actions/ # Server actions
│ ├── api/ # API routes
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Main application page
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ ├── *-screen.tsx # Feature screens
│ └── *.tsx # Other components
├── context/ # React context providers
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries
├── scripts/ # Database scripts
├── styles/ # Additional styles
└── utils/ # Utility functions
- Node.js 18+
- pnpm (recommended) or npm
- Supabase account
-
Clone the repository
git clone <repository-url> cd Inventory_Module
-
Install dependencies
pnpm install
-
Environment Setup Create a
.env.localfile with your configuration:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key OPENAI_API_KEY=your_openai_api_key
-
Database Setup Run the SQL scripts in the
scripts/directory to set up your Supabase database tables. -
Start Development Server
pnpm dev
Open http://localhost:3000 in your browser.
- Create Purchase Requisition - Submit requests for items needed
- PR Approval - Review and approve purchase requisitions
- Create Purchase Order - Generate orders from approved PRs
- PO Approval - Approve purchase orders for procurement
- Create Goods Receipt - Record received items
- View Stock Levels - Monitor current inventory
- Issue Stock - Distribute items from inventory
- Reports - Access dashboards and detailed registers
- Dashboard Screen - Visual analytics and metrics
- Register Screens - Detailed transaction histories
- Creation Screens - Forms for creating new records
- Approval Screens - Workflow approval interfaces
pnpm dev- Start development serverpnpm build- Build for productionpnpm start- Start production serverpnpm lint- Run ESLint
The application uses the following main tables:
purchase_requisitions- PR records and itemspurchase_orders- PO records and itemsgoods_receipts- GR records and itemsstock- Current inventory levels
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
© 2026 Designed by Sundram Pandey - Uttam Innovative Solution Pvt. Ltd.
For support and inquiries, please contact Uttam Innovative Solution Pvt. Ltd.