Initial commit: LMS microservices scaffold
- Gradle multi-module: libs/{common-http,security-jwt,markdown,test-support},
services/{identity,academic,progress,gateway}, web (Thymeleaf+htmx)
- identity-service: JWT auth (RSA), accounts, students, groups, enrollment,
import from XLSX/CSV, credentials export, password reset
- academic-service: lab import from JSON/zip (markdown + YAML + variants),
levels, API
- progress-service: schema for student levels and variant assignments
- gateway: Spring Cloud Gateway, JWT validation, route propagation
- web: Server-side UI with flex/footer layout, light/dark theme toggle,
admin dashboard, groups CRUD, student portal placeholder
- docker-compose: PostgreSQL 18
- Tests: identity smoke test with Testcontainers
This commit is contained in:
30
services/progress-service/src/main/resources/application.yml
Normal file
30
services/progress-service/src/main/resources/application.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
server:
|
||||
port: ${SERVER_PORT:8083}
|
||||
spring:
|
||||
application:
|
||||
name: progress-service
|
||||
datasource:
|
||||
url: ${LMS_DB_URL:jdbc:postgresql://localhost:5432/lms?currentSchema=progress}
|
||||
username: ${LMS_DB_USER:lms}
|
||||
password: ${LMS_DB_PASSWORD:lms}
|
||||
jpa:
|
||||
open-in-view: false
|
||||
hibernate:
|
||||
ddl-auto: validate
|
||||
properties:
|
||||
hibernate:
|
||||
default_schema: progress
|
||||
flyway:
|
||||
enabled: true
|
||||
locations: classpath:db/migration
|
||||
schemas: progress
|
||||
default-schema: progress
|
||||
create-schemas: true
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info
|
||||
springdoc:
|
||||
api-docs:
|
||||
path: /v3/api-docs
|
||||
@@ -0,0 +1,2 @@
|
||||
-- Baseline: student lab levels and variant assignments.
|
||||
CREATE SCHEMA IF NOT EXISTS progress;
|
||||
@@ -0,0 +1,22 @@
|
||||
-- Student levels per lab and variant assignments.
|
||||
|
||||
CREATE TABLE student_lab_levels (
|
||||
student_id uuid NOT NULL,
|
||||
lab_id uuid NOT NULL,
|
||||
lab_level_id uuid NOT NULL,
|
||||
manual boolean NOT NULL DEFAULT false,
|
||||
updated_at timestamptz NOT NULL DEFAULT now(),
|
||||
PRIMARY KEY (student_id, lab_id)
|
||||
);
|
||||
|
||||
CREATE TABLE variant_assignments (
|
||||
id uuid PRIMARY KEY DEFAULT uuidv7(),
|
||||
student_id uuid NOT NULL,
|
||||
lab_id uuid NOT NULL,
|
||||
variant_id uuid NOT NULL,
|
||||
manual boolean NOT NULL DEFAULT false,
|
||||
assigned_at timestamptz NOT NULL DEFAULT now(),
|
||||
CONSTRAINT va_student_lab_unique UNIQUE (student_id, lab_id)
|
||||
);
|
||||
|
||||
CREATE INDEX va_lab_idx ON variant_assignments (lab_id);
|
||||
Reference in New Issue
Block a user