ChakulaHub is a smart meal booking and management platform designed to streamline the process of reserving, organizing, and managing meals in institutions such as universities, hospitals, and organizations. Upgrades coming soon.
- π§βπ³ Admin panel for managing food items and meal schedules
- π Users can view daily meals and book them in advance
- π΅ M-Pesa STK Push integration for seamless payments
- π§ Global state management using Zustand
- π± PWA support for offline functionality and mobile responsiveness
- π Secure authentication and role-based access
- π Real-time notifications and meal reminders
- π Meal booking and payment analytics
- Frontend: React / Next.js + Tailwind CSS + Shadcn ui components
- State Management: Zustand
- Backend: Firebase (Firestore + Realtime Database)
- Authentication: Firebase Auth
- Payments: M-Pesa STK Push (via Node.js + Next Api Routes)
- Hosting: Vercel / Firebase Hosting
- Database:
- Firestore: meal, user, and admin data
- PWA: Service worker & manifest.json integration for installable web app
-
Clone the repository:
git clone https://github.com/math3wsl3v/chakula-hub-project-1.git
-
Navigate to the project directory:
cd chakula-hub-project-1 -
Install dependencies:
npm install
-
Set up environment variables: Create a .env.local file in the root directory. Add Firebase and M-Pesa API credentials.
-
Run the development server:
npm run dev
πΈ M-Pesa Integration
- Uses Daraja API via a custom Express server
- Secure STK push flow for meal payments
- Real-time payment status updates in Firestore
π§ State Management with Zustand
- Lightweight global store for:
- User session
- Booking state
- Real-time UI updates
- Easy to extend and debug
π§Ύ PWA Support
- Fully installable on Android/iOS via browser
- Offline fallback and caching support
- Manifest and service worker configured for smooth performance
π‘ Use Cases
- University and hostel mess booking
- Hospital patient dietary tracking
- Corporate and staff meal scheduling
π License
This project is licensed under the MIT License.
Built with π¦ by math3wsl3vi .