Hosted Website: green-genius.vercel.app
- Utsav Kataria
- Adnan Kabir
- Juhi Parikh
Green Genius is a personalized sustainability tracker and goal‑setting platform built with Flask. The app helps users live more environmentally conscious lives by combining user‑generated eco‑goals, habit tracking, and AI‑powered advice.
Users can:
- Register and log in
- Ask open-ended sustainability questions to an AI assistant
- Log daily eco-friendly actions (e.g., biking to work)
- Track their progress over time
- Set and manage custom sustainability goals
The dashboard presents visual insights like category breakdowns and weekly progress charts, making eco‑conscious living both actionable and motivating.
- Submit sustainability questions to the AI assistant
- Log eco-friendly actions for progress tracking
- Create, edit, and save personal sustainability goals
- View personalized dashboard (saved goals, recent actions, charts)
- Save AI-generated suggestions for later review
- RegistrationForm: Username, email, password, confirm password
- LoginForm: Email and password for authentication
- AIQuestionForm: Textarea for open-ended AI queries
- EcoActionForm: Description and category dropdown (energy, waste, transport, food, water, other)
- GoalForm: Title, description, and optional target date
- /register (GET/POST) — User signup
- /login (GET/POST) — User authentication
- /logout (GET) — End session
- /ask (GET/POST) — Render AI question form and submit prompt to OpenAI
- /history (GET) — List past questions and responses
- /view/<suggestion_id> (GET) — View a specific AI suggestion
- /save/<suggestion_id> (GET) — Mark a suggestion as saved
- /log-action (GET/POST) — Log a new eco‑action
- /actions-history (GET) — View full history of actions
- /set-goal (GET/POST) — Create a new sustainability goal
- /update-goal/<goal_id>/ (GET) — Change goal status (in progress, completed, abandoned)
- /home (GET) — Show the user’s dashboard with stats, charts, recent actions, active goals, and saved tips
- users: _id, username, email, password_hash, created_at
- eco_actions: user_id, action_text, category, timestamp
- sustainability_goals: user_id, title, description, status, created_at, target_date
- ai_suggestions: user_id, question, response, timestamp, saved
We integrated GROQ’s hosted endpoint using the requests Python library to power the AI assistant, Green Genius.
- When users submit questions, their prompts are sent to the LLaMA 4 Scout 17B model via a POST request.
- The model generates tailored, real-time sustainability advice.
- These responses are saved to MongoDB along with user IDs and timestamps.
This adds interactivity, context-aware guidance, and personalized insights beyond static web content.
- Consistent visual design using Bootstrap and custom CSS
- Color-coded badges for quick eco-action category recognition
- Responsive card-based layouts using Flexbox on the dashboard
- Clean spacing and padding for improved readability
- Hover effects and button styles for accessible interactivity
- Animated charts and counters for a modern, dynamic experience