https://github.com/joemathew2004/study-buddy
Study Buddy is a user-friendly AI-powered web app that helps students generate safe, factual study notes and Q&A on any topic. It features user accounts, study history, and strong content safety filtersβmaking learning interactive and secure.
https://github.com/joemathew2004/study-buddy
ai chatbot content-safety education flask groq learning project python qna study webapp
Last synced: 3 months ago
JSON representation
Study Buddy is a user-friendly AI-powered web app that helps students generate safe, factual study notes and Q&A on any topic. It features user accounts, study history, and strong content safety filtersβmaking learning interactive and secure.
- Host: GitHub
- URL: https://github.com/joemathew2004/study-buddy
- Owner: joemathew2004
- Created: 2025-07-05T06:05:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-05T06:34:42.000Z (3 months ago)
- Last Synced: 2025-07-05T07:24:31.578Z (3 months ago)
- Topics: ai, chatbot, content-safety, education, flask, groq, learning, project, python, qna, study, webapp
- Language: HTML
- Homepage:
- Size: 3.18 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Study Buddy
An AI-powered educational app that generates safe, factual study materials and Q&A for any topic, with user accounts and history tracking.
---
## Images
Below are some screenshots of Study Buddy in action:


---
## Features
- π User registration & login
- π AI-generated study notes and Q&A
- π Study history tracking
- π‘ Interesting facts for each topic
- π‘οΈ Content safety & inappropriate content blocking
- β Famous person validation
- π¨ Colorful, interactive UI---
## Quick Start
1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/study-buddy.git
cd study-buddy
```2. **Install dependencies:**
```bash
pip install -r requirements.txt
```3. **Set up environment variables:**
```bash
cp .env.example .env
# Edit .env and add your GROQ API key
```4. **Run the application:**
```bash
# Start the backend server
python server.py
# Start the frontend server (in another terminal)
python -m http.server 8000
```5. **Open your browser:**
[http://localhost:8000/app.html](http://localhost:8000/app.html)---
## Project Structure
```
βββ app.html # Main frontend HTML
βββ app.py # (Optional) Additional backend logic
βββ check_db.py # Script to inspect the database
βββ config.js # Frontend API config
βββ config.py # (Optional) Backend config
βββ index.html # Landing page
βββ qa-styles.css # Q&A section styles
βββ requirements.txt # Python dependencies
βββ script.js # Main frontend JS
βββ server.py # Flask backend
βββ study_buddy.db # SQLite database (auto-created)
βββ style.css # General styles
βββ ...
```---
## Usage
1. Register or log in with your credentials
2. Enter any educational topic in the search box
3. Get AI-generated notes and Q&A
4. View your study history in the sidebar
5. Enjoy interesting facts about your topics---
## Safety Features
- Blocks inappropriate content and bad language
- Only allows famous historical figures and educational topics
- Prevents saving failed or inappropriate queries to history
- Shows helpful error messages with topic suggestions---
## Technologies Used
- **Backend:** Python, Flask, SQLite
- **Frontend:** HTML, CSS, JavaScript
- **AI:** Groq API (Llama 3)
- **Styling:** Font Awesome, Google Fonts---
## API Key
You need a GROQ API key to run this application. Get one from [Groq Console](https://console.groq.com/) and add it to your `.env` file.
---
## License
This project is for educational purposes only.