Web-based admin dashboard for grocery store management. Built for store owners and administrators to manage inventory, orders, customers, and analytics.
- Product Management: Add, edit, and organize product catalog with categories, pricing, and inventory
- Order Management: View, process, and track customer orders in real-time
- Customer Management: Monitor customer accounts, purchase history, and preferences
- Inventory Tracking: Real-time stock levels, low-stock alerts, and automated reordering
- Analytics Dashboard: Sales reports, customer insights, and performance metrics
- User Management: Multi-level admin access with role-based permissions
- Notifications: Real-time alerts for new orders, inventory updates, and system events
- Frontend: React.js
- State Management: Zustand
- UI Framework: Material-UI, Bootstrap
- Charts: Chart.js
- HTTP Client: Axios, @tanstack/react-query
- Build Tool: Webpack
- Node.js (v18 or higher)
- npm or yarn
- Backend API running (grocery-be)
- Clone the repository
git clone https://github.com/kruthishkandula/Grocery-web.git
cd grocery-web- Install dependencies
npm install
# or
yarn install- Configure environment variables
cp .env.example .envEdit .env with your configuration:
REACT_APP_API_URL=http://localhost:3001/api
REACT_APP_APP_NAME=Grocery Admin
- Start the development server
npm start
# or
yarn startnpm run build# Example for Render deploy
commit changes to main deploygrocery-web/
├── public/
├── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Page components
│ ├── services/ # API service calls
│ ├── store/ # State management
│ ├── utils/ # Helper functions
│ ├── hooks/ # Custom React hooks
│ └── assets/ # Images, fonts, etc.
├── package.json
└── README.md
Update the API base URL in your environment file or configuration:
const API_BASE_URL = process.env.REACT_APP_API_URL || 'http://localhost:3001/api';The admin portal integrates with JWT-based authentication from the backend API.
This admin portal consumes the following API endpoints from grocery-be:
GET /api/admin/dashboard- Dashboard statisticsGET /api/products- Product listingPOST /api/products- Create productGET /api/orders- Order managementGET /api/customers- Customer dataGET /api/analytics- Reports and analytics
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in this repository
- Contact: [email protected]
- Grocery-mobile - Customer mobile app
- Grocery-be - Backend API