Project Info
This project did not submit a demo video on Devpost.
Inspiration
Every member of our team has a story about struggling and working towards improving our overall physical well-being. When we decided it was time to pursue a better life through our health, we naturally had to consider our nutrition and food consumption habits. However, upon arriving at UCSC, we noticed a greater difficulty in maintaining a healthy diet. In addition to the inconsistent dining hall food, the web application displaying the available foods and their nutrition facts was incredibly difficult to navigate and use to track our calorie and macronutrient consumption. Hence, at this year's CruzHacks hackathon, we decided it was time to take matters into our own hands and build a better webpage. What It Does From the UCSC Dining Hall Menus website (https://nutrition.sa.ucsc.edu/), our web application obtains the available food from each dining hall and its nutrition information (calories, protein, carbohydrates, and fat) and generates possible meal options using AI and adjusts suggestions based on previously selected options and user information such as dietary restrictions. How We Built It We used a shared GitHub repository and a stack consisting of Python and React.js. We used Python for web-scraping and AI processing + generation and React.js for all front-end displays and processes. Challenges We Ran Into We found it difficult to handle the size of the web-scrape payload, choosing what to discard or add, and how to optimize its performance given the large amounts of data we were attempting to obtain on and the number of requests we had to send to the UCSC Menus' website. We also found it difficult to connect the back and front ends of our application since we were unfamiliar with fusing the languages that we knew. Accomplishments That We're Proud Of We are proud that we were able to develop a working web scraper with Python that would convert a day's worth of dining hall menus into a readable .json file that our AI could understand and process. We were also proud of the AI itself, seeing as it was made completely from scratch, giving us full customization and saving us resources on unnecessary processes. What We Learned We learned how to work with other team members who possessed a diverse and different set of experiences and knowledge. We also enhanced our ability and skills in machine learning and web development. What's Next for NutriSlug? We plan to continue developing our AI algorithm, enhancing the scale and optimizing the performance of the web application, and seeking out our first clients, possible investors, and prospective mentors.
Analysis
View
Metric
- 9
- 7
- 6
- 1
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- HTMLIn code
- JavaScriptIn code
- OpenAIIn code
- PythonIn code
- ReactIn code
- Tailwind CSSIn code
7 of 7 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
124 KB
Source files
44
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
LucianoLL/cruzhacks_2024_key_caps
64 files · 2.6 MB · @ 33c0b9c
Structure
Interface
20 files · 31%Screens, components and styles rendered to the user.
Application logic
26 files · 41%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- JavaScript74%
- Python20%
- Markdown3%
- HTML1%
- CSS1%
- XML1%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
frontend/package.json
npm · 15- @emotion/react
- @emotion/styled
- @mui/icons-material
- @mui/material
- @testing-library/jest-dom
- @testing-library/react
- @testing-library/user-event
- openai
- react
- react-dom
- react-scripts
- web-vitals
- +3 more
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.