A school assignment aggregation system that collects class schedules, assignments, quizzes, and exams into a single timeline view for students.
- User Management: Student, Teacher, and Admin roles
- JWT Authentication: Secure token-based authentication
- Class Management: Teachers can create and manage classes
- Assignment Tracking: Create assignments with due dates and workload estimates
- Timeline View: Visual timeline with conflict detection
- LOW conflict: < 60 minutes of work
- MEDIUM conflict: 60-120 minutes of work
- HIGH conflict: > 120 minutes of work
- Admin Panel: Complete user and enrollment management
- Responsive UI: Built with Next.js, TailwindCSS, and Framer Motion
- Java 17+
- Spring Boot 3.3.0
- Spring Security (JWT-based authentication)
- Spring Data JPA with Hibernate
- H2 Database (in-memory for development)
- Next.js 15.2.9
- React 19
- TypeScript
- TailwindCSS
- Framer Motion (animations)
- Gradle 8.10.2 with Kotlin DSL
- Node.js (frontend build)
- Java 17 or higher
- Node.js 18+ (for development)
Build everything (frontend + backend) into a single executable JAR:
./gradlew buildJarThis will:
- Install frontend dependencies
- Build the frontend as a static export
- Copy frontend files to Spring Boot resources
- Build the complete JAR with embedded frontend
java -jar build/libs/classloop-1.0.0.jarThe application will start on http://localhost:8080
- Frontend UI:
http://localhost:8080/app - API Endpoints:
http://localhost:8080/api
./gradlew bootRuncd frontend
npm install
npm run devFrontend will run on http://localhost:3000 and proxy API requests to the backend.
POST /api/auth/register- Register a new userPOST /api/auth/login- Login and get JWT token
GET /api/classes- Get all classes for authenticated userPOST /api/classes- Create a new class (Teacher only)
GET /api/assignments- Get assignments for enrolled classesPOST /api/assignments- Create assignment (Teacher only)
GET /api/timeline- Get timeline with conflict analysis
GET /api/admin/users- List all usersPOST /api/admin/users- Create userPUT /api/admin/users/{id}- Update userDELETE /api/admin/users/{id}- Delete userGET /api/admin/enrollments- List all enrollmentsPOST /api/admin/enrollments- Create enrollmentDELETE /api/admin/enrollments/{id}- Delete enrollment
.
├── src/main/java/com/classloop/ # Backend Java source
│ ├── ClassLoopApplication.java
│ ├── config/ # Security & Web config
│ ├── auth/ # JWT authentication
│ ├── user/ # User management
│ ├── classroom/ # Class management
│ ├── assignment/ # Assignment management
│ ├── enrollment/ # Student-class enrollment
│ ├── timeline/ # Timeline with conflict detection
│ └── util/ # Utility classes
├── src/main/resources/
│ ├── application.properties # Spring Boot configuration
│ └── static/ # Frontend build (generated)
├── frontend/ # Next.js frontend
│ ├── app/ # Next.js app router pages
│ ├── components/ # React components
│ ├── lib/ # API client
│ └── package.json
├── build.gradle.kts # Gradle build configuration
└── settings.gradle.kts
- Port: 8080
- Database: H2 in-memory (data persists only during runtime)
- H2 Console: http://localhost:8080/h2-console
- JDBC URL:
jdbc:h2:mem:classloop - Username:
sa - Password: (empty)
- JDBC URL:
- JWT tokens expire after 24 hours
- Passwords are hashed with BCrypt
- Role-based access control (STUDENT, TEACHER, ADMIN)
- CSRF protection disabled for stateless JWT authentication
This project was implemented based on the AGENT.md specification.