Inspiration
When donations are limited, deciding where each item should go can be difficult. We wanted to make that decision easier for community centers by showing their outstanding needs alongside the inventory available to distribute.
What it does
Where Donations Are Needed is a web app for tracking donated supplies, managing requests from community centers, and previewing how available inventory could be distributed. It calculates a proportional allocation based on each center’s pending needs, so coordinators can review the proposed quantities before confirming them.
How we built it
We built the app with Next.js and TypeScript, with PostgreSQL for data storage and Prisma for database access. Auth.js provides Google sign-in for coordinators. The app is deployed on Render and uses Neon for its hosted database.
Challenges we faced
One challenge was deciding how to distribute supplies when donations cannot cover every request. We implemented proportional allocation and a preview step so coordinators can understand the proposed distribution before confirming it. Setting up deployment, database connectivity, and Google sign-in also required careful configuration.
What we learned
We learned that a useful allocation tool needs to make its decisions understandable. Showing each center’s needs, available inventory, and proposed quantities helps coordinators make informed decisions.
The current version is a functional prototype that uses sample centers and data to demonstrate the workflow.
Built With
- auth.js
- neon
- next.js
- postgresql
- prisma
- react
- render
- typescript