Inspiration

Globally, hundreds of billions of plastic water bottles are thrown away annually, and students make a huge contribution to that statistic. Thirsty students, who despite carrying around their own water bottles, cannot find or cannot be bothered to refill their water bottles. To reduce plastic waste, we built Thirst Trips, a web app that locates water fountains near you and rewards you for being sustainable. Unlike having to search for the water fountains placed in small nooks and crannies, it shows you where the nearest water fountains are on a map and incentivizes refilling instead of buying by gamifying the experience.

What it does

Thirst Trips is a web app that incentivizes users to refill their water bottles instead of purchasing single use plastic bottles. It tracks the location of water fountains that are already in the database on a map, and shows users where they are relative to the user’s location. Thirst Trips additionally uses AR to show the user in real time where the water fountains are to aid with navigation. If there is a water fountain that isn’t in the database already (i.e. a newly built water fountain), users can take a photo of the water fountain and upload its location to the database. Users play as a raccoon avatar, collecting points every time they refill their water bottles at a water fountain and scan the water fountain’s associated NFC tag. There are achievements that are unlocked by doing specific tasks, such as finding a water fountain for the first time, logging a new water fountain into the database, and drinking water from all the water fountains in a building. These points will be able to be used to purchase cosmetics in the game to customize the raccoon avatar in various ways, making the experience more fun and rewarding for refilling and being sustainable.

How we built it

Thirst Trips is a mobile-friendly web app with a separate frontend and backend. The frontend uses JavaScript, HTML, and CSS, with Node.js and Express serving the map, navigator, and uploader pages. We used Leaflet and MapLibre to display fountains in order to help the user find the nearest one.

The backend is coded in Django and SQLite. It manages all the fountain data, user accounts, NFC check-ins, points, and achievements. The frontend communicates with the backend through API endpoints so users can browse fountains, submit new locations, and track their progress.

In order to help users find the nearest fountains better, we built an AR-style navigator that uses a phone’s location and sensors to guide users. We also allowed the user to take pictures of a new fountain and upload them. For check-ins, each fountain has a unique NFC identifier. Scanning its tag opens a check-in page, where the backend verifies the identifier and awards points.

We ran the frontend and backend as separate services and used a Cloudflare tunnel to make the app available over HTTPS, which is needed for phone features like GPS and camera access.

Challenges we ran into

We had problems connecting the frontend with the backend. The Node website and the Django server are separate services that must be running, but we had problems allowing the Node website to read and write the Django database. We were using this kind of database for the first time, which caused problems when we tried tunnelling. In order to resolve this, we had to use two different domains that the website and server had to communicate through.

Accomplishments that we're proud of

We have a fully functional web app that has a beautiful user interface. As a team, we addressed a problem that we as students face each day and devised a solution that is fun and exciting to use and did so in a way that was efficient and effective.

What we learned

It takes a village to raise a metaphorical code baby.
Friendship is key.
Claude coder? I hardly know her!
Always yield to pedestrian raccoons.
Fake it til you make it.
Im so hungry i can eat a metaphorical code horse

What's next for ThirstTrips

Looking forward, we can envision a multitude of changes for ThirstTrips. First, we’d love to have our app on home screens across campus by turning it into a real app for mobile devices. Secondly, expanding our app to flesh out its features. This’d expand our amenities beyond just water fountains, as well as finishing our dedicated page for our raccoon mascot, where points can be exchanged for accessories and clothing, maybe implementing a gacha system?!?! Finally, we would add quality of life changes, including better navigation, logging in with google/alternative methods, more achievements, better rewards, and more art/music!

Share this project:

Updates

Submission history