"Success is the sum of small efforts, repeated day in and day out." - Robert Collier
Focus Forge is a revolutionary educational learning platform built with Spring Boot and powered by Spring AI, designed to transform the way students learn, track progress, and achieve their career goals.
In today's world, many students want to study and improve themselves. But the biggest challenge is not studying β it is:
- π Tracking daily progress - Monitoring what you've learned each day
- π Maintaining consistency - Building and keeping study habits
- πͺ Staying disciplined - Overcoming procrastination and distractions
- π Improving every single day - Continuous growth and development
- ποΈ Managing the journey - Keeping everything organized and structured
Managing this journey becomes complex and unorganized.
Focus Forge β a smart productivity platform designed specifically for students to:
- Track their daily study activities and progress
- Maintain consistency through intelligent reminders and insights
- Visualize their learning journey with comprehensive analytics
- Get AI-powered assistance for their study questions
- Receive personalized weekly reports and recommendations
- Stay motivated with goal tracking and achievement milestones
Database Schema Design - Complete system architecture showing relationships between entities
- π€ AI-Powered Chat Assistant - Get instant help with your studies using OpenAI integration
- π Study Room Management - Create and organize virtual study rooms for different subjects
- π Progress Tracking - Monitor daily, weekly, and monthly learning progress
- π Smart Note Taking - Store and retrieve notes with vector embeddings for semantic search
- π Weekly Reports - Automated weekly performance reports with insights and recommendations
- π― Goal Setting & Tracking - Set academic goals and track your journey towards them
- π¬ Real-time Chat History - All your AI conversations stored and retrievable
- π Secure Authentication - Spring Security implementation for user data protection
- π³ Dockerized Deployment - Easy deployment with Docker containerization
- π Vector Search - Advanced semantic search using PGVector for intelligent content retrieval
Complete REST API endpoints for user management and authentication
REST API endpoints for study rooms, progress tracking, and reports
> Interactive API documentation with Swagger/OpenAPI specification
Data Transfer Objects showcasing the application's data structure there are more
Study room information stored in PostgreSQL database
AI chat conversation history stored in the database
> PGVector embeddings for semantic search functionality
Sample weekly report and commit generated by the AI system
- Java 17 or higher
- Maven 3.9+
- Docker & Docker Compose
- PostgreSQL with PGVector extension
- OpenAI API Key
- Git
-
Clone the repository
git clone https://github.com/ARONAGENT/Focus_Forge_Backend.git cd Focus_Forge_Backend -
Set up environment variables Create an
application.propertiesor.envfile:# Database Configuration spring.datasource.url=jdbc:postgresql://localhost:5432/focusforge spring.datasource.username=your_username spring.datasource.password=your_password # OpenAI Configuration spring.ai.openai.api-key=your_openai_api_key spring.ai.openai.chat.model=gpt-4 # Vector Store Configuration spring.ai.vectorstore.pgvector.initialize-schema=true # Server Configuration server.port=8080
-
Install PostgreSQL with PGVector
# Using Docker docker run -d \ --name focusforge-postgres \ -e POSTGRES_DB=focusforge \ -e POSTGRES_USER=your_username \ -e POSTGRES_PASSWORD=your_password \ -p 5432:5432 \ ankane/pgvector -
Build the application
./mvnw clean install
-
Run with Docker Compose (Recommended)
docker-compose up -d
OR
Run locally
./mvnw spring-boot:run
-
Access the application
- API Base URL:
http://localhost:8080 - Swagger UI:
http://localhost:8080/swagger-ui.html - API Docs:
http://localhost:8080/v3/api-docs
- API Base URL:
This backend API can be integrated with any frontend framework:
- React/Next.js
- Angular
- Vue.js
- Mobile apps (React Native, Flutter)
link - > https://github.com/ARONAGENT/Focus_Forge_Frontend
Focus Forge implements robust security measures:
- π JWT-based authentication
- π‘οΈ Spring Security for endpoint protection
- π Password encryption with BCrypt
- π« CORS configuration
- β Input validation and sanitization
- π Secure API key management
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
MIT License
Copyright (c) 2026 ARONAGENT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
- Spring Boot Team - For the incredible framework that powers this application
- Spring AI Community - For making AI integration seamless and developer-friendly
- OpenAI - For providing powerful AI models through their API
- PostgreSQL Team - For the robust and reliable database system
- PGVector Contributors - For enabling vector similarity search in PostgreSQL
- Open Source Community - For inspiration, tools, and endless support
- Docker Community - For simplifying deployment and containerization
- All Contributors - Who helped improve this project with their valuable feedback
- Spring Boot Documentation
- Spring AI Documentation
- OpenAI API Documentation
- PGVector GitHub
- Docker Documentation
- Spring Security Reference
ARONAGENT
- GitHub: @ARONAGENT
- Email: Contact via GitHub
- Project Link: https://github.com/ARONAGENT/Focus_Forge_Backend
- Core API Development
- AI Integration with OpenAI
- Vector Store Implementation
- Weekly Reports Generation
- Mobile App Integration
- Real-time Notifications
- Gamification Features
- Social Learning Features
- Advanced Analytics Dashboard
- Multi-language Support