Skip to content

nick-carroll1/HackDuke

Repository files navigation

Cup Adventure

Screen Shot 2022-10-23 at 1 10 51 PM

Final Project for IDS 706: Data Engineering Systems

Streamlit Page: https://nick-carroll1-hackduke-welcome-page-streamlit-onpq1t.streamlit.app

Inspiration

We are inspired by a cup of hot chocolate. One Saturday afternoon, when we were brainstorming about the project for this hackathon at McDonald's, Jenny ordered a hot chocolate. However, we disposed of the coffee cup after using it, which is not environmentally friendly. In addition, we notice students mainly use plastic or paper cups when dining on the campus. Therefore, we decided to build an app that helps to recycle the cups when we order drinks at the cafe.

What it does

"Cups Adventure" program is designed to encourage students to reduce the amount of disposable cups and promote a more sustainable campus. Reusable cups would be circulated around the campus through borrowing and returning, and sustainability credits could be earned with rewards redeemable after each circulation.

Activities when you embark on a Cup Adventure:

  • Borrow : Borrow a cup from your favorite vendor!
  • Return: Return the cup before embarking on a new adventure.
  • Save the earth: Every time you use a reusable cup, mother earth hugs you very tight to show her thanks

Steps:

  1. Create the SQL Database and generate fake data image (2)

Screen Shot 2022-12-16 at 5 07 26 PM

  1. Connect Amazon AWS to with SQL Database, store data in AWS database

Screen Shot 2022-12-16 at 5 11 05 PM

build code with pip environment (ensure that streamlit has all the dependencies that we need)

Frontend: Streamlit

Functions:

I. Administrator Functions

Screen Shot 2022-12-16 at 5 12 18 PM

Can sign in with the following information:

Screen Shot 2022-12-16 at 5 17 10 PM

1. Read All Data

Screen Shot 2022-12-16 at 5 18 04 PM

2. Pull Customer Data

Screen Shot 2022-12-16 at 5 18 38 PM

3. Add/Update Customer Data

Screen Shot 2022-12-16 at 5 18 56 PM

4. Transactions

Screen Shot 2022-12-16 at 5 13 47 PM

II. Customer Sign-Up

Screen Shot 2022-12-16 at 5 20 21 PM

III. Scanning Page

Screen Shot 2022-12-16 at 5 23 35 PM

IV. Customer Analytics

Screen Shot 2022-12-16 at 5 25 18 PM

Screen Shot 2022-12-16 at 5 25 47 PM

Screen Shot 2022-12-16 at 5 25 54 PM

________________________Hackathon

Checkout our website here:

CupsAdventure Website

How we built it

To introduce people to the idea of using a reusable cup, we use an HTML and CSS webpage, combined with data visualization and insights from the Python library using JavaScript. To engage people with the actual act of using a reusable cup, we create the front end of CupAdventure app, which can be previewed on the link provided.

Challenges we ran into

None of us are proficient in front-end programming. So, learning JavaScript, html5 and CSS overnight is a super big challenge for us. We also have no experience in mobile app programming, but we manage to finish creating the front end of our mobile app.

Accomplishments that we're proud of

We are making advancements in front-end knowledge, html5, CSS, javascript, we also manage to embed an interactive graph from an important dataset in the website.

What we learned

We learned that in making front-end, there are more than one language to combine. We actually learn new languages such as html5, css, and javascript.

What's next for Cup Adventure

  • Back-end polishes for the app, implementing cloud storage to make sure the app runs 24/7
  • Trial implementation in Fuqua Friday (so many plasticware)
  • West campus dining implementation

References

https://www.earthday.org/fact-sheet-how-much-disposable-plastic-we-use/

https://www.anthropocenemagazine.org/2017/07/reusable-or-disposable-which-coffee-cup-has-a-smaller-footprint/

About

Code for Good 2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •