This is a Next.js project bootstrapped with create-next-app.
Fully functional Full-stack Web App with NextJS frontend, Flask backend, connected to a machine learning model and firebase database.
This project was a submission to a hackathon, "SASEHacks", created for the purpose of fostering the community to reduce food waste. It is designed as a food tracker, where users can add foods to their pantry, refrigerator, or freezer. From there, a ML model, trained on a database of expiration dates from the FSIS, would predict when these foods would expire. Then, when food items are close to expiring, a user would be alerted and can generate recipes using those items with our recipe generator backed by OpenAI's ChatGPT.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser, and set the view to a mobile phone for the best result. At this time, our website does not support a full desktop experience.
Next, run the backend server, this will require three things:
- Have a python environment with all the necessary packages installed.
- Have a firebase account with firebase credentials in a services/firebase.js file.
- Have the necessary API tokens for HuggingFace and OpenAI.
Then:
cd model-sasehack
python server.py