GreenPlate
The timesaver that you need !
The problem GreenPlate solves
The problem it solves
GreenPlate solves one of the most common yet overlooked problems in colleges and campuses: food waste and inefficient canteen ordering systems.
Every day, campus food stalls face issues like:
- students waiting in long queues during rush hours
- cancelled orders leading to prepared food being wasted
- unsold meals at the end of serving hours
- no easy way to reuse safe leftover food
- lack of incentives for students to make sustainable food choices
- staff having no data on waste, performance, or demand trends
Traditional canteen systems only focus on ordering food, but they do not solve what happens after cancellations, unsold inventory, or food surplus.
GreenPlate transforms this process into a closed-loop sustainable food ecosystem.
What people can use it for
Students can use GreenPlate to:
- browse live menus from verified campus stalls
- prepay and skip queues with secure pickup codes
- buy discounted surplus meals from the resale marketplace
- earn Eco Points for sustainable purchases
- redeem points for discounts on future meals
- avoid unnecessary cancellations through reward-based accountability
Staff and managers can use it to:
- manage menus quickly using AI-powered menu scanning
- handle pickup verification securely
- monitor stall and staff performance
- convert cancelled READY orders into discounted resale items
- donate unsold safe food to nearby shelters
- track waste reduction and sustainability impact
How it makes existing tasks easier
GreenPlate makes campus food ordering faster, smarter, and more sustainable by:
- reducing queue time with digital ordering
- preventing edible food from being wasted
- automatically converting cancellations into resale opportunities
- creating a donation workflow for shelters
- rewarding responsible student behavior with Eco Points
- helping stalls recover revenue from cancelled orders
- giving managers better operational visibility
Instead of food being thrown away, it gets:
resold, rewarded, or rescued
This makes GreenPlate not just a food ordering app, but a campus sustainability platform that reduces waste while improving convenience and affordability.
Challenges we ran into
Challenges I ran into
Building GreenPlate was exciting because the biggest challenge was not just creating a food ordering system, but making sure the sustainability workflows remained reliable, fair, and abuse-proof.
One of the toughest hurdles was designing the order lifecycle architecture.
A normal food app only needs:
order → payment → pickup
But GreenPlate had to support a much more complex real-world flow:
order → payment → cancellation → refund → resale → donation → eco rewards
Making all these states work together without breaking the user experience was one of the hardest engineering problems in the project.
1) Preventing race conditions in resale purchases
A major issue appeared in the discounted resale marketplace.
Multiple students could try to buy the same surplus meal at the same time, which created a risk of double booking the same food item.
To solve this, I implemented Firestore transactional reservations with a timed lock window, where an item becomes temporarily reserved for 5 minutes during payment.
This ensured only one student could complete checkout while keeping the system fair and scalable.
2) Keeping payments, refunds, and cancellations consistent
Another big challenge was integrating Razorpay payments with Firestore order states.
The difficult part was ensuring:
- payment success updates the correct order
- cancelled paid orders trigger refunds safely
- READY orders convert into resale items
- duplicate webhook/payment verification does not break the order state
I solved this by introducing:
- internal order IDs
- idempotent payment verification
- batch Firestore writes
- strict order status validation before every transition
This made the payment flow much safer and production-ready.
3) Designing Eco Points without loopholes
The Eco Points reward economy introduced a new challenge:
how to reward sustainable behavior without letting users exploit the system.
For example, users could repeatedly:
order → earn points → cancel → refund → repeat
To prevent this abuse, I added:
- eco point penalties on cancellation
- no negative point balances
- tier recalculation after penalties
- weekly cancellation limits
- discount caps during redemption
This turned gamification into a fair sustainability incentive system instead of a loophole-prone rewards feature.
4) Balancing features without making the app feel overloaded
Since GreenPlate includes:
- food ordering
- AI menu scanning
- resale marketplace
- donation rescue
- eco rewards
- analytics
…the hardest product challenge was ensuring the app still felt simple and intuitive.
I solved this by keeping the core student flow minimal:
menu → order → pickup
while advanced sustainability workflows only activate when needed in the backend.
This kept the user experience clean while still making the platform powerful.
What I learned
This project taught me how to design real-world backend systems where business logic, payments, sustainability, and gamification all interact safely.
The biggest takeaway was learning how to think beyond CRUD APIs and build state-driven systems that solve real operational problems at scale.
Tracks Applied (1)
Best Use of Gemini API
Gemini

