SmartStreetSupply is a full-stack web application designed to help street food vendors find trusted nearby raw material sellers while maintaining high food quality and minimizing daily food wastage. The platform integrates AI and Machine Learning to provide personalized quantity estimation, nearest seller discovery, and review sentiment analysis, enabling smarter and more sustainable food operations.
- Review System: Buyers can write reviews for sellers with sentiment analysis
- Color-coded Seller Status: Sellers are displayed with green/red borders based on review sentiment
- Hugging Face Integration: Automatic sentiment analysis of reviews using AI
- Real-time Review Updates: Reviews are immediately reflected in seller status
Create a .env.local file in the root directory with the following variables:
# Hugging Face API Key for sentiment analysis
# Get your API key from: https://huggingface.co/settings/tokens
HUGGING_FACE_API_KEY
JWT_SECRET
UPSTASH_REDIS_REST_URL
UPSTASH_REDIS_REST_TOKEN
GROQ_API_KEY
MONGODB_URI- Find nearby raw material sellers
- Get AI-based raw material quantity estimation
- Reduce daily food wastage
- View seller ratings based on sentiment analysis
- List available raw materials
- Reach nearby vendors easily
- Build trust through transparent reviews
- KNN Algorithm to find the nearest raw material sellers
- Personalized AI Model for quantity estimation using daily wastage data
- Sentiment Analysis (NLP) to classify seller reviews
- Redis caching for faster ML model responses
- Next.js
- Tailwind CSS
- Node.js
- Express.js
- MongoDB
- Redis
- K-Nearest Neighbors (KNN)
- Sentiment Analysis (NLP)
- Vendor enters daily sales and food wastage data
- AI estimates the exact raw material quantity required
- KNN model identifies nearest trusted sellers
- Sentiment analysis validates seller reviews
- Redis caches results for faster future access
- Vendor places order with confidence
Follow these steps to run the project locally.
Make sure you have the following installed:
- Node.js (v18 or above recommended)
- npm
- MongoDB
- Redis
- Docker compose
git clone https://github.com/saburi004/TutedudeHackathon.git
cd TutedudeHackathon
npm installCreate a .env file in the root directory
docker compose up -d
npm run dev