An intelligent web-based SQL learning platform built with Java and Spring Boot that helps users practice SQL queries, get AI-powered explanations, and track query history.
- AI-powered SQL tutoring and explanations using Groq API
- User login interface
- Execute SQL queries interactively
- View query results in a structured format
- Query history tracking
- Clean web UI with HTML, CSS, and JavaScript
- Spring Boot backend with MVC architecture
- Database schema initialization using SQL scripts
- Java
- Spring Boot
- Spring MVC
- Spring Data JPA
- Maven
- HTML
- CSS
- JavaScript
- Thymeleaf
- SQL database (configured via application.properties)
- Groq API
src/main/java/com/sqltutor/
├── ai/ # AI tutor service
├── config/ # Security and app config
├── controller/ # Controllers
├── model/ # Entity classes
├── repository/ # JPA repositories
├── service/ # Business logic
└── SqlTutorAIApplication.java
src/main/resources/
├── static/ # CSS and JS files
├── templates/ # HTML pages
├── schema.sql # Database schema
└── application.properties
git clone <your-repo-url>
cd "AI Powered SQL Tutor Using Java"Set your Groq API key as an environment variable:
GROQ_API_KEY=your_api_keyConfigure:
- database URL
- username
- password
- Groq API key placeholder
Example:
groq.api.key=${GROQ_API_KEY}mvn spring-boot:runhttp://localhost:8080
- Login Page
- SQL Tutor Chat Interface
- Query History Page
- SQL learning for students
- Query debugging assistance
- Practice database concepts
- AI-assisted tutoring
Do not commit:
- application.properties with secrets
- API keys
- target/ folder
Use .gitignore to exclude sensitive and generated files.
- Add user authentication with roles
- Support multiple databases
- Add dashboard analytics
- Improve AI prompt context
- Add export/download history
Soumya Ramchandran