Implementing Exercise system in database with API and frontend visualization

This commit is contained in:
2024-10-07 13:15:16 +02:00
parent 4b2764e33c
commit 3dd7b1d4c6
20 changed files with 413 additions and 99 deletions

View File

@@ -0,0 +1,7 @@
import axios from "axios"
const BASE_URL = "http://localhost:3000/exercises"
export async function getAllExerciseGroups() {
return await axios.get(BASE_URL)
}

View File

@@ -0,0 +1,8 @@
import { ExerciseModel } from "./exerciseModel"
export class ExerciseGroupModel {
nameDe: string = ""
nameEn: string = ""
groupNr: number = 0
exercises: Array<ExerciseModel>
}

View File

@@ -0,0 +1,8 @@
export class ExerciseModel {
nameDe: string = ""
nameEn: string = ""
exerciseNr: number = 0
descriptionDe: string = ""
descriptionEn: string = ""
solved: boolean = false
}