Index: Sources/backend/.gitignore
===================================================================
--- Sources/backend/.gitignore	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/.gitignore	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
Index: Sources/backend/.mvn/wrapper/maven-wrapper.properties
===================================================================
--- Sources/backend/.mvn/wrapper/maven-wrapper.properties	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/.mvn/wrapper/maven-wrapper.properties	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
Index: Sources/backend/mvnw
===================================================================
--- Sources/backend/mvnw	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/mvnw	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,316 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#    https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+#   JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+#   M2_HOME - location of maven2's installed home dir
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
+#     e.g. to debug Maven itself, use
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+  if [ -f /usr/local/etc/mavenrc ] ; then
+    . /usr/local/etc/mavenrc
+  fi
+
+  if [ -f /etc/mavenrc ] ; then
+    . /etc/mavenrc
+  fi
+
+  if [ -f "$HOME/.mavenrc" ] ; then
+    . "$HOME/.mavenrc"
+  fi
+
+fi
+
+# OS specific support.  $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  MINGW*) mingw=true;;
+  Darwin*) darwin=true
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+    if [ -z "$JAVA_HOME" ]; then
+      if [ -x "/usr/libexec/java_home" ]; then
+        export JAVA_HOME="`/usr/libexec/java_home`"
+      else
+        export JAVA_HOME="/Library/Java/Home"
+      fi
+    fi
+    ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+  if [ -r /etc/gentoo-release ] ; then
+    JAVA_HOME=`java-config --jre-home`
+  fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+  ## resolve links - $0 may be a link to maven's home
+  PRG="$0"
+
+  # need this for relative symlinks
+  while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+      PRG="$link"
+    else
+      PRG="`dirname "$PRG"`/$link"
+    fi
+  done
+
+  saveddir=`pwd`
+
+  M2_HOME=`dirname "$PRG"`/..
+
+  # make it fully qualified
+  M2_HOME=`cd "$M2_HOME" && pwd`
+
+  cd "$saveddir"
+  # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+  [ -n "$M2_HOME" ] &&
+    M2_HOME=`cygpath --unix "$M2_HOME"`
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CLASSPATH" ] &&
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+  [ -n "$M2_HOME" ] &&
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+  javaExecutable="`which javac`"
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+    # readlink(1) is not available as standard on Solaris 10.
+    readLink=`which readlink`
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+      if $darwin ; then
+        javaHome="`dirname \"$javaExecutable\"`"
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+      else
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
+      fi
+      javaHome="`dirname \"$javaExecutable\"`"
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+      JAVA_HOME="$javaHome"
+      export JAVA_HOME
+    fi
+  fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  else
+    JAVACMD="`\\unset -f command; \\command -v java`"
+  fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+  echo "Error: JAVA_HOME is not defined correctly." >&2
+  echo "  We cannot execute $JAVACMD" >&2
+  exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+  echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+  if [ -z "$1" ]
+  then
+    echo "Path not specified to find_maven_basedir"
+    return 1
+  fi
+
+  basedir="$1"
+  wdir="$1"
+  while [ "$wdir" != '/' ] ; do
+    if [ -d "$wdir"/.mvn ] ; then
+      basedir=$wdir
+      break
+    fi
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+    if [ -d "${wdir}" ]; then
+      wdir=`cd "$wdir/.."; pwd`
+    fi
+    # end of workaround
+  done
+  echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+  if [ -f "$1" ]; then
+    echo "$(tr -s '\n' ' ' < "$1")"
+  fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+  exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+    if [ "$MVNW_VERBOSE" = true ]; then
+      echo "Found .mvn/wrapper/maven-wrapper.jar"
+    fi
+else
+    if [ "$MVNW_VERBOSE" = true ]; then
+      echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+    fi
+    if [ -n "$MVNW_REPOURL" ]; then
+      jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+    else
+      jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+    fi
+    while IFS="=" read key value; do
+      case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+      esac
+    done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+    if [ "$MVNW_VERBOSE" = true ]; then
+      echo "Downloading from: $jarUrl"
+    fi
+    wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+    if $cygwin; then
+      wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+    fi
+
+    if command -v wget > /dev/null; then
+        if [ "$MVNW_VERBOSE" = true ]; then
+          echo "Found wget ... using wget"
+        fi
+        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+            wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+        else
+            wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+        fi
+    elif command -v curl > /dev/null; then
+        if [ "$MVNW_VERBOSE" = true ]; then
+          echo "Found curl ... using curl"
+        fi
+        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+            curl -o "$wrapperJarPath" "$jarUrl" -f
+        else
+            curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+        fi
+
+    else
+        if [ "$MVNW_VERBOSE" = true ]; then
+          echo "Falling back to using Java to download"
+        fi
+        javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+        # For Cygwin, switch paths to Windows format before running javac
+        if $cygwin; then
+          javaClass=`cygpath --path --windows "$javaClass"`
+        fi
+        if [ -e "$javaClass" ]; then
+            if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+                if [ "$MVNW_VERBOSE" = true ]; then
+                  echo " - Compiling MavenWrapperDownloader.java ..."
+                fi
+                # Compiling the Java class
+                ("$JAVA_HOME/bin/javac" "$javaClass")
+            fi
+            if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+                # Running the downloader
+                if [ "$MVNW_VERBOSE" = true ]; then
+                  echo " - Running MavenWrapperDownloader.java ..."
+                fi
+                ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+            fi
+        fi
+    fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+  echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  [ -n "$M2_HOME" ] &&
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+  [ -n "$CLASSPATH" ] &&
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+  $MAVEN_OPTS \
+  $MAVEN_DEBUG_OPTS \
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+  "-Dmaven.home=${M2_HOME}" \
+  "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
Index: Sources/backend/mvnw.cmd
===================================================================
--- Sources/backend/mvnw.cmd	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/mvnw.cmd	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,188 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements.  See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership.  The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License.  You may obtain a copy of the License at
+@REM
+@REM    https://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied.  See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM     e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+    IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+    if "%MVNW_VERBOSE%" == "true" (
+        echo Found %WRAPPER_JAR%
+    )
+) else (
+    if not "%MVNW_REPOURL%" == "" (
+        SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+    )
+    if "%MVNW_VERBOSE%" == "true" (
+        echo Couldn't find %WRAPPER_JAR%, downloading it ...
+        echo Downloading from: %DOWNLOAD_URL%
+    )
+
+    powershell -Command "&{"^
+		"$webclient = new-object System.Net.WebClient;"^
+		"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+		"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+		"}"^
+		"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+		"}"
+    if "%MVNW_VERBOSE%" == "true" (
+        echo Finished downloading %WRAPPER_JAR%
+    )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+  %JVM_CONFIG_MAVEN_PROPS% ^
+  %MAVEN_OPTS% ^
+  %MAVEN_DEBUG_OPTS% ^
+  -classpath %WRAPPER_JAR% ^
+  "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+  %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
Index: Sources/backend/pom.xml
===================================================================
--- Sources/backend/pom.xml	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/pom.xml	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>3.0.0</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+    <groupId>bazi.finki.ukim.mk</groupId>
+    <artifactId>finkiForums</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <name>finkiForums</name>
+    <description>finkiForums</description>
+    <properties>
+        <java.version>17</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-jpa</artifactId>
+        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>org.springframework.boot</groupId>-->
+<!--            <artifactId>spring-boot-starter-security</artifactId>-->
+<!--        </dependency>-->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.postgresql</groupId>
+            <artifactId>postgresql</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>org.springframework.security</groupId>-->
+<!--            <artifactId>spring-security-test</artifactId>-->
+<!--            <scope>test</scope>-->
+<!--        </dependency>-->
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>
+                            <groupId>org.projectlombok</groupId>
+                            <artifactId>lombok</artifactId>
+                        </exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Enumerations/UserType.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Enumerations/UserType.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Enumerations/UserType.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Enumerations;
+
+public enum UserType {
+    STUDENT,
+    PROFESSOR,
+    ADMIN
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/BadUsernameException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/BadUsernameException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/BadUsernameException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class BadUsernameException extends RuntimeException{
+    public BadUsernameException(String username) {
+        super(String.format("User with username %s not found", username));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InavlidStudentReaction.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InavlidStudentReaction.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InavlidStudentReaction.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class InavlidStudentReaction extends RuntimeException{
+    public InavlidStudentReaction() {
+        super("Invalid Student reaction");
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/IndexNotFoundException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/IndexNotFoundException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/IndexNotFoundException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class IndexNotFoundException extends RuntimeException {
+    public IndexNotFoundException() {
+        super("Index not found");
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidAnswerIdException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidAnswerIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidAnswerIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class InvalidAnswerIdException extends RuntimeException{
+    public InvalidAnswerIdException(Long id) {
+        super(String.format("Answer with id %d doesn't exist", id));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidCategoryIdException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidCategoryIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidCategoryIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class InvalidCategoryIdException extends RuntimeException{
+    public InvalidCategoryIdException(Long id) {
+        super(String.format("Category with id %d doesn't exist", id));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidCourseIdException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidCourseIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidCourseIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class InvalidCourseIdException extends RuntimeException{
+    public InvalidCourseIdException(Long id) {
+        super(String.format("Course with id %d doesn't exist", id));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidQuestionIdException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidQuestionIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidQuestionIdException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+public class InvalidQuestionIdException extends RuntimeException{
+    public InvalidQuestionIdException(Long id) {
+        super(String.format("Question with id %d doesn't exist", id));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidUserTypeException.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidUserTypeException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Exceptions/InvalidUserTypeException.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Exceptions;
+
+import bazi.finki.ukim.mk.finkiforums.Enumerations.UserType;
+
+public class InvalidUserTypeException extends RuntimeException {
+    public InvalidUserTypeException(UserType userType) {
+        super(String.format("User with userType %s cannot be created with the registration form",userType.name()));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/FinkiForumsApplication.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/FinkiForumsApplication.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/FinkiForumsApplication.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,13 @@
+package bazi.finki.ukim.mk.finkiforums;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class FinkiForumsApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(FinkiForumsApplication.class, args);
+    }
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Admin.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Admin.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Admin.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,29 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Entity
+@Table(schema = "project", name = "administratori")
+public class Admin {
+
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "a_id")
+    Long id;
+    @Column(name = "a_ime")
+    String name;
+    @Column(name = "a_prezime")
+    String lastName;
+    @Column(name = "a_korisnicko_ime")
+    String username;
+    @Column(name = "a_email")
+    String email;
+    @Column(name = "a_lozinka")
+    String password;
+
+    public Admin() {
+    }
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Answer.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Answer.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Answer.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,43 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+import java.sql.Timestamp;
+
+@Data
+@Table(name = "odgovori", schema = "project")
+@Entity
+public class Answer {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "o_id")
+    Long id;
+    @Column(name = "o_sodrzina")
+    String content;
+    @Column(name = "o_validen")
+    Boolean valid;
+    @Column(name = "o_datum")
+    Timestamp dateAnswered;
+    @JoinColumn(name="pra_id")
+    @ManyToOne
+    Question question;
+    @JoinColumn(name="s_id")
+    @ManyToOne
+    Student student;
+    @JoinColumn(name="p_id")
+    @ManyToOne
+    Professor professor;
+
+    public Answer() {
+    }
+
+    public Answer(String content, Boolean valid, Timestamp dateAnswered, Question question, Student student, Professor professor) {
+        this.content = content;
+        this.valid = valid;
+        this.dateAnswered = dateAnswered;
+        this.question = question;
+        this.student = student;
+        this.professor = professor;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Category.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Category.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Category.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,24 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name = "kategorii", schema = "project")
+@Entity
+public class Category {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "ka_id")
+    Long id;
+    @Column(name = "ka_ime")
+    String name;
+    @Column(name = "ka_opis")
+    String description;
+    @JoinColumn(name = "a_id")
+    @ManyToOne
+    Admin aId;
+
+    public Category() {
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Course.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Course.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Course.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,24 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name = "kursevi", schema = "project")
+@Entity
+public class Course {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "ku_id")
+    Long id;
+    @Column(name = "ku_ime")
+    String name;
+    @Column(name = "ku_opis")
+    String description;
+    @JoinColumn(name = "pr_id")
+    @ManyToOne
+    Subject prId;
+
+    public Course() {
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Material.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Material.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Material.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,36 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+
+@Entity
+@Table(schema = "project", name = "materijali")
+public class Material {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "m_id")
+    Long id;
+    @Column(name = "m_ime")
+    String name;
+    @JoinColumn(name = "p_id")
+    @ManyToOne
+    Professor professor;
+    @JoinColumn(name = "ka_id")
+    @ManyToOne
+    Category category;
+    @JoinColumn(name = "ku_id")
+    @ManyToOne
+    Course course;
+
+    public Material() {
+    }
+
+    public Material(String name, Professor professor, Course course) {
+        this.name = name;
+        this.professor = professor;
+        this.course = course;
+    }
+
+    public String getName() {
+        return name;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/MaterialAboutQuestion.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/MaterialAboutQuestion.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/MaterialAboutQuestion.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,23 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Entity
+@Table(schema = "project", name = "e_vo_vrska_so")
+public class MaterialAboutQuestion {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "vs_id")
+    Long id;
+    @JoinColumn(name="m_id")
+    @OneToOne
+    Material material;
+    @JoinColumn(name="pra_id")
+    @ManyToOne
+    Question question;
+
+    public MaterialAboutQuestion() {
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Professor.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Professor.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Professor.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,35 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name = "profesori", schema = "project")
+@Entity
+public class Professor {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "p_id")
+    Long id;
+    @Column(name = "p_ime")
+    String name;
+    @Column(name = "p_prezime")
+    String lastName;
+    @Column(name = "p_korisnicko_ime")
+    String username;
+    @Column(name = "p_email")
+    String email;
+    @Column(name = "p_lozinka")
+    String password;
+
+    public Professor() {
+    }
+
+    public Professor(String name, String lastName, String username, String email, String password) {
+        this.name = name;
+        this.lastName = lastName;
+        this.username = username;
+        this.email = email;
+        this.password = password;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorConsults.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorConsults.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorConsults.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,22 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+import java.sql.Timestamp;
+
+@Data
+@Table(name = "prof_term_za_kons", schema = "project")
+@Entity
+public class ProfessorConsults {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "ptk_id")
+    Long id;
+    @JoinColumn(name="p_id")
+    @ManyToOne
+    Professor professor;
+    @Column(name = "termin")
+    Timestamp consultTime;
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorReaction.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorReaction.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorReaction.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,31 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name="dava_reakcija", schema = "project")
+@Entity
+public class ProfessorReaction {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "dr_id")
+    Long id;
+    @JoinColumn(name="p_id")
+    @ManyToOne
+    Professor professor;
+    @JoinColumn(name="o_id")
+    @ManyToOne
+    Answer answer;
+    @Column(name = "reakcija")
+    Boolean reaction;
+
+    public ProfessorReaction() {
+    }
+
+    public ProfessorReaction(Professor professor, Answer answer, Boolean reaction) {
+        this.professor = professor;
+        this.answer = answer;
+        this.reaction = reaction;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorTeachingCourse.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorTeachingCourse.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/ProfessorTeachingCourse.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,23 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name = "e_prof_na", schema = "project")
+@Entity
+public class ProfessorTeachingCourse {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name="pn_id")
+    Long id;
+    @JoinColumn(name="p_id")
+    @ManyToOne
+    Professor professor;
+    @JoinColumn(name="ku_id")
+    @ManyToOne
+    Course course;
+
+    public ProfessorTeachingCourse() {
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Question.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Question.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Question.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,40 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+import java.sql.Timestamp;
+import java.time.LocalDateTime;
+
+@Data
+@Table(name = "prasanja", schema = "project")
+@Entity
+public class Question {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "pra_id")
+    Long id;
+    @Column(name = "pra_naslov")
+    String title;
+    @Column(name = "pra_sodrzina")
+    String content;
+    @Column(name = "pra_datum")
+    Timestamp dateAsked;
+    @JoinColumn(name="s_id")
+    @ManyToOne
+    Student student;
+    @JoinColumn(name="ku_id")
+    @ManyToOne
+    Course course;
+
+    public Question() {
+    }
+
+    public Question(String title, String content, Timestamp dateAsked, Student student, Course course) {
+        this.title = title;
+        this.content = content;
+        this.dateAsked = dateAsked;
+        this.student = student;
+        this.course = course;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/QuestionTaggedWithCategory.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/QuestionTaggedWithCategory.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/QuestionTaggedWithCategory.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,28 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name = "e_oznaceno_so", schema = "project")
+@Entity
+public class QuestionTaggedWithCategory {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "os_id")
+    Long id;
+    @JoinColumn(name="pra_id")
+    @ManyToOne
+    Question question;
+    @JoinColumn(name="ka_id")
+    @ManyToOne
+    Category category;
+
+    public QuestionTaggedWithCategory() {
+    }
+
+    public QuestionTaggedWithCategory(Question question, Category category) {
+        this.question = question;
+        this.category = category;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Student.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Student.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Student.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,38 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name="studenti", schema = "project")
+@Entity
+public class Student {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "s_id")
+    Long id;
+    @Column(name = "s_ime")
+    String name;
+    @Column(name = "s_prezime")
+    String lastName;
+    @Column(name = "s_korisnicko_ime")
+    String username;
+    @Column(name = "s_email")
+    String email;
+    @Column(name = "s_lozinka")
+    String password;
+    @Column(name = "s_index")
+    String index;
+
+    public Student() {
+    }
+
+    public Student(String name, String lastName, String username, String email, String password, String index) {
+        this.name = name;
+        this.lastName = lastName;
+        this.username = username;
+        this.email = email;
+        this.password = password;
+        this.index = index;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/StudentAttendingCourse.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/StudentAttendingCourse.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/StudentAttendingCourse.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,28 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name="moze_da_slusa", schema = "project")
+@Entity
+public class StudentAttendingCourse {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name="mds_id")
+    Long id;
+    @JoinColumn(name="s_id")
+    @ManyToOne
+    Student student;
+    @JoinColumn(name="ku_id")
+    @ManyToOne
+    Course course;
+
+    public StudentAttendingCourse() {
+    }
+
+    public StudentAttendingCourse(Student student, Course course) {
+        this.student = student;
+        this.course = course;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/StudentReaction.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/StudentReaction.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/StudentReaction.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,31 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Table(name = "reagira_na", schema = "project")
+@Entity
+public class StudentReaction {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "rn_id")
+    Long id;
+    @JoinColumn(name="s_id")
+    @ManyToOne
+    Student student;
+    @JoinColumn(name="o_id")
+    @ManyToOne
+    Answer answer;
+    @Column(name = "reakcija")
+    Boolean reaction;
+
+    public StudentReaction() {
+    }
+
+    public StudentReaction(Student student, Answer answer, Boolean reaction) {
+        this.student = student;
+        this.answer = answer;
+        this.reaction = reaction;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Subject.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Subject.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Model/Subject.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,22 @@
+package bazi.finki.ukim.mk.finkiforums.Model;
+
+import jakarta.persistence.*;
+import lombok.Data;
+
+@Data
+@Entity
+@Table(name = "predmeti", schema = "project")
+public class Subject {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    @Column(name = "pr_id")
+    Long id;
+    @Column(name = "pr_ime")
+    String name;
+    @JoinColumn(name = "a_id")
+    @ManyToOne
+    Admin aId;
+
+    public Subject() {
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/AdminRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/AdminRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/AdminRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Admin;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.Optional;
+
+@Repository
+public interface AdminRepository extends JpaRepository<Admin, Long> {
+    Optional<Admin> findByUsername(String Username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/AnswerRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/AnswerRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/AnswerRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Answer;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface AnswerRepository extends JpaRepository<Answer, Long> {
+    List<Answer> findAllByQuestionId(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/CategoryRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/CategoryRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/CategoryRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Category;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface CategoryRepository extends JpaRepository<Category, Long> {
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/CourseRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/CourseRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/CourseRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,14 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+import bazi.finki.ukim.mk.finkiforums.Model.Subject;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface CourseRepository extends JpaRepository<Course, Long> {
+
+    List<Course> findAllByPrId(Subject id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/MaterialAboutQuestionRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/MaterialAboutQuestionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/MaterialAboutQuestionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,10 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.MaterialAboutQuestion;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface MaterialAboutQuestionRepository extends JpaRepository<MaterialAboutQuestion, Long> {
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/MaterialRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/MaterialRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/MaterialRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,11 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Material;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+import java.util.List;
+
+@Repository
+public interface MaterialRepository extends JpaRepository<Material, Long> {
+    List<Material> findByCourseId(Long courseId);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorConsultsRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorConsultsRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorConsultsRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorConsults;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface ProfessorConsultsRepository extends JpaRepository<ProfessorConsults, Long> {
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorReactionRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorReactionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorReactionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,13 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorReaction;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+import java.util.List;
+import java.util.Optional;
+
+@Repository
+public interface ProfessorReactionRepository extends JpaRepository<ProfessorReaction, Long> {
+    List<ProfessorReaction> findAllByAnswerIdAndReaction(Long id, Boolean reaction);
+    Optional<ProfessorReaction> findByAnswerIdAndProfessorUsername(Long id, String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,13 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.Optional;
+
+@Repository
+public interface ProfessorRepository extends JpaRepository<Professor, Long> {
+    Optional<Professor> findByUsername(String Username);
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorTeachingCourseRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorTeachingCourseRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/ProfessorTeachingCourseRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorTeachingCourse;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface ProfessorTeachingCourseRepository extends JpaRepository<ProfessorTeachingCourse, Long> {
+    List<ProfessorTeachingCourse> findAllByProfessorUsername(String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/QuestionRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/QuestionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/QuestionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Question;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface QuestionRepository extends JpaRepository<Question, Long> {
+    List<Question> findAllByCourseId(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/QuestionTaggedWithCategoryRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/QuestionTaggedWithCategoryRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/QuestionTaggedWithCategoryRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,7 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.QuestionTaggedWithCategory;
+import org.springframework.data.jpa.repository.JpaRepository;
+
+public interface QuestionTaggedWithCategoryRepository extends JpaRepository<QuestionTaggedWithCategory, Long> {
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentAttendingCourseRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentAttendingCourseRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentAttendingCourseRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.StudentAttendingCourse;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+@Repository
+public interface StudentAttendingCourseRepository extends JpaRepository<StudentAttendingCourse, Long> {
+    List<StudentAttendingCourse> findAllByStudentUsername(String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentReactionRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentReactionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentReactionRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,14 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.StudentReaction;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Optional;
+
+@Repository
+public interface StudentReactionRepository extends JpaRepository<StudentReaction, Long> {
+    List<StudentReaction> findAllByAnswerIdAndReaction(Long id, Boolean reaction);
+    Optional<StudentReaction> findByAnswerIdAndStudentUsername(Long id, String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/StudentRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+import java.util.Optional;
+
+@Repository
+public interface StudentRepository extends JpaRepository<Student, Long> {
+    Optional<Student> findByUsername(String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/SubjectRepository.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/SubjectRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Repository/SubjectRepository.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Repository;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Subject;
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface SubjectRepository extends JpaRepository<Subject, Long> {
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Response/UserResponse.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Response/UserResponse.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Response/UserResponse.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,29 @@
+package bazi.finki.ukim.mk.finkiforums.Response;
+
+import bazi.finki.ukim.mk.finkiforums.Enumerations.UserType;
+
+public class UserResponse {
+    public String username;
+    public UserType userType;
+
+    public UserResponse(String username, UserType userType) {
+        this.username = username;
+        this.userType = userType;
+    }
+
+    public String getUsername() {
+        return username;
+    }
+
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    public UserType getUserType() {
+        return userType;
+    }
+
+    public void setUserType(UserType userType) {
+        this.userType = userType;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AdminPanelService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AdminPanelService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AdminPanelService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,8 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import java.util.List;
+import java.util.Map;
+
+public interface AdminPanelService {
+    List<Map<String, Object>> getStats(int id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AdminService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AdminService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AdminService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Admin;
+
+import java.util.List;
+
+public interface AdminService {
+    public List<Admin> findAllAdmins();
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AnswerService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AnswerService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/AnswerService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,11 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Answer;
+import java.util.List;
+
+public interface AnswerService {
+    List<Answer> findAllAnswers();
+    List<Answer> findAllByQuestionId(Long id);
+    Answer save(String content, String username, Long questionId);
+    Answer findById(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/CategoryService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/CategoryService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/CategoryService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,10 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Category;
+
+import java.util.List;
+
+public interface CategoryService {
+    List<Category> findAllCategories();
+    Category findById(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/CourseService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/CourseService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/CourseService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,11 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+
+import java.util.List;
+
+public interface CourseService {
+     List<Course> findAllCourses();
+     List<Course> findAllCoursesBySubjectId(Long id);
+     Course findById(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/LoginService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/LoginService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/LoginService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,8 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Response.UserResponse;
+
+public interface LoginService {
+    UserResponse findUserByUsername(String username, String password);
+    String getActiveProfessorUsername();
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/MaterialAboutQuestionService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/MaterialAboutQuestionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/MaterialAboutQuestionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.MaterialAboutQuestion;
+
+import java.util.List;
+
+public interface MaterialAboutQuestionService {
+    List<MaterialAboutQuestion> findAllMaterialAboutQuestion();
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/MaterialService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/MaterialService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/MaterialService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,11 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Material;
+
+import java.util.List;
+
+public interface MaterialService {
+    List<Material> findAllMaterials();
+    List<String> findAllMaterialsForCourseId(Long id);
+    void save(String name, String username, Long courseId);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorConsultsService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorConsultsService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorConsultsService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,9 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorConsults;
+
+import java.util.List;
+
+public interface ProfessorConsultsService {
+    List<ProfessorConsults> findAllConsults();
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorReactionService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorReactionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorReactionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,10 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorReaction;
+
+import java.util.List;
+
+public interface ProfessorReactionService {
+    List<ProfessorReaction> findAllReactionsByProfessors();
+    void saveReaction(Long id, String username, Boolean reaction);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,10 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+
+import java.util.List;
+
+public interface ProfessorService {
+    List<Professor> findAllProfessors();
+    Professor findProfessorByUsername(String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorTeachingCourseService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorTeachingCourseService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ProfessorTeachingCourseService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,13 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorTeachingCourse;
+import bazi.finki.ukim.mk.finkiforums.Model.StudentAttendingCourse;
+
+import java.util.List;
+
+public interface ProfessorTeachingCourseService {
+    List<ProfessorTeachingCourse> findAllProfessorsTeachingCourses();
+    List<ProfessorTeachingCourse> findAllByProfessorUsername(String username);
+
+    ProfessorTeachingCourse addCourseToProfessor(String username, long selectedCourse);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/QuestionService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/QuestionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/QuestionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,13 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Question;
+
+import java.util.List;
+
+public interface QuestionService {
+    List<Question> findAllQuestions();
+    List<Question> findAllQuestionsByCourse(Long id);
+    Question findById(Long id);
+    Question save(String title, String content, String studentUserame, Long courseId);
+    Integer findLikesForAnswer(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/QuestionTaggedWithCategoryService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/QuestionTaggedWithCategoryService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/QuestionTaggedWithCategoryService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,11 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.QuestionTaggedWithCategory;
+
+import java.util.List;
+
+public interface QuestionTaggedWithCategoryService {
+    List<QuestionTaggedWithCategory> findAllTaggedQuestions();
+
+    QuestionTaggedWithCategory save(Long questionId, Long categoryId);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/RegistrationService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/RegistrationService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/RegistrationService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,8 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Enumerations.UserType;
+import bazi.finki.ukim.mk.finkiforums.Response.UserResponse;
+
+public interface RegistrationService {
+    UserResponse create(String name, String lastName, String email, String username, String password, UserType userType, String index);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AdminPanelServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AdminPanelServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AdminPanelServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,152 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Service.AdminPanelService;
+import org.springframework.jdbc.core.JdbcTemplate;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class AdminPanelServiceImpl implements AdminPanelService {
+
+    private final JdbcTemplate jdbcTemplate;
+
+    public AdminPanelServiceImpl(JdbcTemplate jdbcTemplate) {
+        this.jdbcTemplate = jdbcTemplate;
+    }
+
+    @Override
+    public List<Map<String, Object>> getStats(int id) {
+        String sql;
+        switch (id) {
+            case 1 -> {
+                sql = """
+                        select q3.maximum, p3.*
+                        from (
+                                 select max(q2.count) as maximum, q2.pra_id
+                                 from(
+                                         select distinct q.count, q.pra_id as pra_id
+                                         from(
+                                                 select count(distinct o.o_id), p.pra_id as pra_id from project.prasanja p
+                                                                                                            join project.odgovori o on p.pra_id = o.pra_id
+                                                 where o.p_id is not null and
+                                                     p.pra_datum between now()-interval '4 months' and now()
+                                                 group by p.pra_id
+
+                                             ) as q
+                                                 join project.prasanja p on q.pra_id = p.pra_id
+                                                 join project.odgovori o on o.pra_id = p.pra_id
+                                         where q.count >=2 and o.o_validen is true
+                                     ) as q2
+                                         join project.prasanja p2 on p2.pra_id = q2.pra_id
+                                 group by q2.pra_id
+                                 order by maximum desc
+                                 limit 1
+                             ) as q3
+                                 join project.prasanja p3 on q3.pra_id = p3.pra_id""";
+                return jdbcTemplate.queryForList(sql);
+            }
+            case 2 -> {
+                sql = """
+                         select pras.*, q2.sum
+                         from (select distinct q1.pra_id, sum(q1.br_reakcii_total)
+                               from (select brnio.br_reakcii_total, p.*
+                                     from project.broj_reakcii_na_izbrani_odgovori brnio
+                                              join project.prasanja p on brnio.pra_id = p.pra_id
+                                              join project.odgovori o on brnio.o_id = o.o_id
+                                     where brnio.br_reakcii_total >=
+                                           (select avg(brno.br_reakcii_total) from project.broj_reakcii_na_odgovor brno)) as q1
+                               group by q1.pra_id) as q2
+                                  join project.prasanja as pras on pras.pra_id = q2.pra_id;""";
+                return jdbcTemplate.queryForList(sql);
+            }
+            case 3 -> {
+                sql = """
+                        select parts.p_korisnicko_ime korisnicko_ime, parts.rejt + parts.mat + parts.kurs as vk
+                        from (select prof.p_korisnicko_ime,
+                                     case when top_odg.num_rejting is null then 0 else top_odg.num_rejting end as rejt,
+                                     case when najm_mat.num_mat is null then 0 else najm_mat.num_mat end       as mat,
+                                     case when najm_kurs.num_kurs is null then 0 else najm_kurs.num_kurs end   as kurs
+                              from project.profesori prof
+                                       left join
+                                   (select o.p_id, q1.c1 + q2.c2 as num_rejting
+                                    from project.odgovori o
+                                             join
+                                         (select o.o_id, count(o.o_id) c1
+                                          from project.odgovori o
+                                                   left join dava_reakcija dr on o.o_id = dr.o_id
+                                          where o.p_id is not null
+                                            and dr.reakcija is true
+                                          group by o.o_id) q1 on o.o_id = q1.o_id
+                                             join
+                                         (select o.o_id, count(o.o_id) c2
+                                          from project.odgovori o
+                                                   left join project.reagira_na rn on o.o_id = rn.o_id
+                                          where o.p_id is not null
+                                            and rn.reakcija is true
+                                          group by o.o_id) q2 on o.o_id = q2.o_id
+                                    order by num_rejting desc) top_odg on prof.p_id = top_odg.p_id
+                                       left join
+                                   (select p.p_id, count(m.m_id) num_mat
+                                    from project.materijali m
+                                             join project.profesori p on m.p_id = p.p_id
+                                    group by p.p_id) najm_mat on prof.p_id = najm_mat.p_id
+                                       left join
+                                   (select p.p_id, count(epn.p_id) num_kurs
+                                    from project.kursevi ku
+                                             join project.e_prof_na epn on ku.ku_id = epn.ku_id
+                                             join project.profesori p on epn.p_id = p.p_id
+                                    group by p.p_id) najm_kurs on prof.p_id = najm_kurs.p_id) as parts
+                        order by vk desc
+                        limit 5""";
+                return jdbcTemplate.queryForList(sql);
+            }
+            case 4 -> {
+                sql = """
+                        select pr.pr_id, pr.pr_ime, q1.ku_ime, q1.br_isti_kategorii, count(distinct q2.pra_id) as br_prasanja
+                        from project.predmeti pr
+                                 join project.kursevi ku on pr.pr_id = ku.pr_id
+                                 join
+                             (select ku.ku_id, ku.ku_ime, count(*) br_isti_kategorii
+                              from project.kursevi ku
+                                       left join project.prasanja pra on ku.ku_id = pra.ku_id
+                                       left join project.e_oznaceno_so eos on pra.pra_id = eos.pra_id
+                                       left join project.materijali m on ku.ku_id = m.ku_id
+                              where eos.ka_id = m.ka_id
+                              group by ku.ku_id, ku.ku_ime
+                              having count(*) >= 2
+                              order by br_isti_kategorii desc
+                              limit 3) q1 on ku.ku_id = q1.ku_id
+                                 join
+                             (select pras.ku_id as ku_id, pras.pra_id
+                              from project.prasanja pras
+                              where now() >= pras.pra_datum
+                                and age(now(), pras.pra_datum) <= interval '3 months') q2 on ku.ku_id = q2.ku_id
+                        group by pr.pr_id, pr.pr_ime, q1.ku_ime, q1.br_isti_kategorii
+
+                        order by br_prasanja desc""";
+                return jdbcTemplate.queryForList(sql);
+            }
+            case 5 -> {
+                sql = """
+                        select prof.p_ime, prof.p_prezime, q3.najbrzo_vreme
+                        from project.profesori prof
+                                 join (select q2.p_id, min(q2.avg_vreme) najbrzo_vreme
+                                       from (select q1.p_id, avg(q1.vreme_odg) avg_vreme
+                                             from (select o.p_id, age(o.o_datum,p.pra_datum) vreme_odg
+                                                   from project.odgovori o
+                                                            join project.prasanja p on o.pra_id = p.pra_id
+                                                   where o.p_id is not null) q1
+                                             group by q1.p_id) q2
+                                       group by q2.p_id
+                                       order by 2
+                                       limit 1) q3 on prof.p_id = q3.p_id
+
+                        """;
+                return jdbcTemplate.queryForList(sql);
+            }
+        }
+        return null;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AdminServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AdminServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AdminServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,23 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Admin;
+import bazi.finki.ukim.mk.finkiforums.Repository.AdminRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.AdminService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class AdminServiceImpl implements AdminService {
+
+    private final AdminRepository adminRepository;
+
+    public AdminServiceImpl(AdminRepository adminRepository) {
+        this.adminRepository = adminRepository;
+    }
+
+    @Override
+    public List<Admin> findAllAdmins() {
+        return this.adminRepository.findAll();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AnswerServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AnswerServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/AnswerServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,69 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidAnswerIdException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidQuestionIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.Answer;
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import bazi.finki.ukim.mk.finkiforums.Model.Question;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Repository.AnswerRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.QuestionRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.AnswerService;
+import org.springframework.stereotype.Service;
+
+import java.sql.Timestamp;
+import java.time.Instant;
+import java.util.List;
+import java.util.Optional;
+
+@Service
+public class AnswerServiceImpl implements AnswerService {
+    private final AnswerRepository answerRepository;
+    private final StudentRepository studentRepository;
+    private final ProfessorRepository professorRepository;
+    private final QuestionRepository questionRepository;
+
+    public AnswerServiceImpl(AnswerRepository answerRepository, StudentRepository studentRepository, ProfessorRepository professorRepository, QuestionRepository questionRepository) {
+        this.answerRepository = answerRepository;
+        this.studentRepository = studentRepository;
+        this.professorRepository = professorRepository;
+        this.questionRepository = questionRepository;
+    }
+
+    @Override
+    public List<Answer> findAllAnswers() {
+        return this.answerRepository.findAll();
+    }
+
+    @Override
+    public List<Answer> findAllByQuestionId(Long id) {
+        return this.answerRepository.findAllByQuestionId(id);
+    }
+
+    @Override
+    public Answer save(String content, String username, Long questionId) {
+        if (this.questionRepository.findById(questionId).isPresent()) {
+            Question question = this.questionRepository.findById(questionId).get();
+
+            if (this.studentRepository.findByUsername(username).isPresent()) {
+                Student student = this.studentRepository.findByUsername(username).get();
+                return answerRepository.save(new Answer(content, false, Timestamp.from(Instant.now()), question,student,null));
+            } else if (this.professorRepository.findByUsername(username).isPresent()) {
+                Professor professor = this.professorRepository.findByUsername(username).get();
+                return answerRepository.save(new Answer(content, false, Timestamp.from(Instant.now()), question,null,professor));
+            }
+            throw new BadUsernameException(username);
+        }
+        else{
+            throw new InvalidQuestionIdException(questionId);
+        }
+    }
+
+    @Override
+    public Answer findById(Long id) {
+        return this.answerRepository.findById(id).orElseThrow(() -> new InvalidAnswerIdException(id));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/CategoryServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/CategoryServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/CategoryServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,29 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidCategoryIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.Category;
+import bazi.finki.ukim.mk.finkiforums.Repository.CategoryRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.CategoryService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class CategoryServiceImpl implements CategoryService {
+
+    private final CategoryRepository categoryRepository;
+
+    public CategoryServiceImpl(CategoryRepository categoryRepository) {
+        this.categoryRepository = categoryRepository;
+    }
+
+    @Override
+    public List<Category> findAllCategories() {
+        return this.categoryRepository.findAll();
+    }
+
+    @Override
+    public Category findById(Long id) {
+        return this.categoryRepository.findById(id).orElseThrow(() -> new InvalidCategoryIdException(id));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/CourseServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/CourseServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/CourseServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,44 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidCourseIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+import bazi.finki.ukim.mk.finkiforums.Model.Subject;
+import bazi.finki.ukim.mk.finkiforums.Repository.CourseRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.CourseService;
+import bazi.finki.ukim.mk.finkiforums.Service.SubjectService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class CourseServiceImpl implements CourseService {
+
+    private final CourseRepository courseRepository;
+    private final SubjectService subjectService;
+
+    public CourseServiceImpl(CourseRepository courseRepository, SubjectService subjectService) {
+        this.courseRepository = courseRepository;
+        this.subjectService = subjectService;
+    }
+
+    @Override
+    public List<Course> findAllCourses() {
+        return this.courseRepository.findAll();
+    }
+
+    @Override
+    public List<Course> findAllCoursesBySubjectId(Long id) {
+        Subject subject = this.findSubjectById(id);
+        return this.courseRepository.findAllByPrId(subject);
+    }
+
+    @Override
+    public Course findById(Long id) {
+        return this.courseRepository.findById(id)
+                .orElseThrow(() -> new InvalidCourseIdException(id));
+    }
+
+    private Subject findSubjectById(Long id){
+        return this.subjectService.findById(id);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/LoginServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/LoginServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/LoginServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,59 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Enumerations.UserType;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Model.Admin;
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Repository.AdminRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentRepository;
+import bazi.finki.ukim.mk.finkiforums.Response.UserResponse;
+import bazi.finki.ukim.mk.finkiforums.Service.LoginService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class LoginServiceImpl implements LoginService {
+    private final StudentRepository studentRepository;
+    private final ProfessorRepository professorRepository;
+    private final AdminRepository adminRepository;
+    private String activeProfessorUsername;
+
+    public LoginServiceImpl(StudentRepository studentRepository, ProfessorRepository professorRepository, AdminRepository adminRepository) {
+        this.studentRepository = studentRepository;
+        this.professorRepository = professorRepository;
+        this.adminRepository = adminRepository;
+    }
+
+    @Override
+    public UserResponse findUserByUsername(String username, String password) {
+        if (this.adminRepository.findByUsername(username).isPresent())
+        {
+            Admin admin = this.adminRepository.findByUsername(username).get();
+            if (admin.getPassword().equals(password)){
+                return new UserResponse(admin.getUsername(), UserType.ADMIN);
+            }
+        }
+        if (this.studentRepository.findByUsername(username).isPresent())
+        {
+            Student student = this.studentRepository.findByUsername(username).get();
+            if (student.getPassword().equals(password)){
+                return new UserResponse(student.getUsername(), UserType.STUDENT);
+            }
+        }
+        if (this.professorRepository.findByUsername(username).isPresent())
+        {
+            Professor professor = this.professorRepository.findByUsername(username).get();
+            if (professor.getPassword().equals(password)){
+                this.activeProfessorUsername = username;
+                return new UserResponse(professor.getUsername(), UserType.PROFESSOR);
+            }
+        }
+        throw new BadUsernameException(username);
+    }
+
+    @Override
+    public String getActiveProfessorUsername() {
+        return activeProfessorUsername;
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/MaterialAboutQuestionServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/MaterialAboutQuestionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/MaterialAboutQuestionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,22 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Model.MaterialAboutQuestion;
+import bazi.finki.ukim.mk.finkiforums.Repository.MaterialAboutQuestionRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.MaterialAboutQuestionService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class MaterialAboutQuestionServiceImpl implements MaterialAboutQuestionService {
+    private final MaterialAboutQuestionRepository materialAboutQuestionRepository;
+
+    public MaterialAboutQuestionServiceImpl(MaterialAboutQuestionRepository materialAboutQuestionRepository) {
+        this.materialAboutQuestionRepository = materialAboutQuestionRepository;
+    }
+
+    @Override
+    public List<MaterialAboutQuestion> findAllMaterialAboutQuestion() {
+        return materialAboutQuestionRepository.findAll();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/MaterialServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/MaterialServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/MaterialServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,44 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+import bazi.finki.ukim.mk.finkiforums.Model.Material;
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import bazi.finki.ukim.mk.finkiforums.Repository.MaterialRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.CourseService;
+import bazi.finki.ukim.mk.finkiforums.Service.MaterialService;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.stream.Collectors;
+
+@Service
+public class MaterialServiceImpl implements MaterialService {
+
+    private final MaterialRepository materialRepository;
+    private final ProfessorService professorService;
+    private final CourseService courseService;
+
+    public MaterialServiceImpl(MaterialRepository materialRepository, ProfessorService professorService, CourseService courseService) {
+        this.materialRepository = materialRepository;
+        this.professorService = professorService;
+        this.courseService = courseService;
+    }
+
+    @Override
+    public List<Material> findAllMaterials() {
+        return materialRepository.findAll();
+    }
+
+    @Override
+    public List<String> findAllMaterialsForCourseId(Long id) {
+        return this.materialRepository.findByCourseId(id).stream().map(Material::getName).collect(Collectors.toList());
+    }
+
+    @Override
+    public void save(String name, String username, Long courseId) {
+        Professor professor = this.professorService.findProfessorByUsername(username);
+        Course course = this.courseService.findById(courseId);
+        this.materialRepository.save(new Material(name, professor, course));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorConsultsServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorConsultsServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorConsultsServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,23 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorConsults;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorConsultsRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorConsultsService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class ProfessorConsultsServiceImpl implements ProfessorConsultsService {
+    private final ProfessorConsultsRepository professorConsultsRepository;
+
+    public ProfessorConsultsServiceImpl(ProfessorConsultsRepository professorConsultsRepository) {
+        this.professorConsultsRepository = professorConsultsRepository;
+    }
+
+
+    @Override
+    public List<ProfessorConsults> findAllConsults() {
+        return this.professorConsultsRepository.findAll();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorReactionServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorReactionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorReactionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,45 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InavlidStudentReaction;
+import bazi.finki.ukim.mk.finkiforums.Model.*;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorReactionRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.AnswerService;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorReactionService;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class ProfessorReactionServiceImpl implements ProfessorReactionService {
+
+    private final ProfessorReactionRepository professorReactionRepository;
+    private final ProfessorService professorService;
+    private final AnswerService answerService;
+
+    public ProfessorReactionServiceImpl(ProfessorReactionRepository professorReactionRepository, ProfessorService professorService, AnswerService answerService) {
+        this.professorReactionRepository = professorReactionRepository;
+        this.professorService = professorService;
+        this.answerService = answerService;
+    }
+
+    @Override
+    public List<ProfessorReaction> findAllReactionsByProfessors() {
+        return this.professorReactionRepository.findAll();
+    }
+
+    @Override
+    public void saveReaction(Long id, String username, Boolean reaction) {
+        Professor professor = this.professorService.findProfessorByUsername(username);
+        Answer answer = this.answerService.findById(id);
+        if (this.professorReactionRepository.findByAnswerIdAndProfessorUsername(id, username).isPresent()){
+            ProfessorReaction professorReaction = this.professorReactionRepository.findByAnswerIdAndProfessorUsername(id, username)
+                    .orElseThrow(InavlidStudentReaction::new);
+            professorReaction.setReaction(reaction);
+            this.professorReactionRepository.save(professorReaction);
+        }
+        else {
+            this.professorReactionRepository.save(new ProfessorReaction(professor, answer, reaction));
+        }
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,30 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class ProfessorServiceImpl implements ProfessorService {
+
+    private final ProfessorRepository professorRepository;
+
+    public ProfessorServiceImpl(ProfessorRepository professorRepository) {
+        this.professorRepository = professorRepository;
+    }
+
+    @Override
+    public List<Professor> findAllProfessors() {
+        return this.professorRepository.findAll();
+    }
+
+    @Override
+    public Professor findProfessorByUsername(String username) {
+        return this.professorRepository.findByUsername(username)
+                .orElseThrow(() -> new BadUsernameException(username));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorTeachingCourseServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorTeachingCourseServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/ProfessorTeachingCourseServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,45 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidCourseIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.*;
+import bazi.finki.ukim.mk.finkiforums.Repository.CourseRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorTeachingCourseRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorTeachingCourseService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class ProfessorTeachingCourseServiceImpl implements ProfessorTeachingCourseService {
+    private final ProfessorTeachingCourseRepository professorTeachingCourseRepository;
+    private final ProfessorRepository professorRepository;
+    private final CourseRepository courseRepository;
+
+    public ProfessorTeachingCourseServiceImpl(ProfessorTeachingCourseRepository professorTeachingCourseRepository, ProfessorRepository professorRepository, CourseRepository courseRepository) {
+        this.professorTeachingCourseRepository = professorTeachingCourseRepository;
+        this.professorRepository = professorRepository;
+        this.courseRepository = courseRepository;
+    }
+
+    @Override
+    public List<ProfessorTeachingCourse> findAllProfessorsTeachingCourses() {
+        return this.professorTeachingCourseRepository.findAll();
+    }
+
+    @Override
+    public List<ProfessorTeachingCourse> findAllByProfessorUsername(String username) {
+        return this.professorTeachingCourseRepository.findAllByProfessorUsername(username);
+    }
+
+    @Override
+    public ProfessorTeachingCourse addCourseToProfessor(String username, long selectedCourse) {
+        Professor professor = professorRepository.findByUsername(username).orElseThrow(()->new BadUsernameException(username));
+        Course course = courseRepository.findById(selectedCourse).orElseThrow(()->new InvalidCourseIdException(selectedCourse));
+        ProfessorTeachingCourse professorTeachingCourse = new ProfessorTeachingCourse();
+        professorTeachingCourse.setProfessor(professor);
+        professorTeachingCourse.setCourse(course);
+        return this.professorTeachingCourseRepository.save(professorTeachingCourse);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/QuestionServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/QuestionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/QuestionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,70 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidCourseIdException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidQuestionIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+import bazi.finki.ukim.mk.finkiforums.Model.Question;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Repository.*;
+import bazi.finki.ukim.mk.finkiforums.Service.QuestionService;
+import org.springframework.stereotype.Service;
+
+import java.sql.Timestamp;
+import java.time.Instant;
+import java.util.List;
+
+@Service
+public class QuestionServiceImpl implements QuestionService {
+    private final QuestionRepository questionRepository;
+    private final StudentRepository studentRepository;
+    private final CourseRepository courseRepository;
+    private final ProfessorReactionRepository professorReactionRepository;
+    private final StudentReactionRepository studentReactionRepository;
+
+    public QuestionServiceImpl(QuestionRepository questionRepository, StudentRepository studentRepository, CourseRepository courseRepository, ProfessorReactionRepository professorReactionRepository, StudentReactionRepository studentReactionRepository) {
+        this.questionRepository = questionRepository;
+        this.studentRepository = studentRepository;
+        this.courseRepository = courseRepository;
+        this.professorReactionRepository = professorReactionRepository;
+        this.studentReactionRepository = studentReactionRepository;
+    }
+
+    @Override
+    public List<Question> findAllQuestions() {
+        return this.questionRepository.findAll();
+    }
+
+    @Override
+    public List<Question> findAllQuestionsByCourse(Long id) {
+        return this.questionRepository.findAllByCourseId(id);
+    }
+
+    @Override
+    public Question findById(Long id) {
+        return this.questionRepository.findById(id)
+                .orElseThrow(() -> new InvalidQuestionIdException(id));
+    }
+
+    @Override
+    public Question save(String title, String content, String studentUserame, Long courseId) {
+        if (this.studentRepository.findByUsername(studentUserame).isPresent()) {
+            if (this.courseRepository.findById(courseId).isPresent()) {
+                Student student = studentRepository.findByUsername(studentUserame).get();
+                Course course = courseRepository.findById(courseId).get();
+                return questionRepository.save(new Question(title, content, Timestamp.from(Instant.now()), student, course));
+            }
+            throw new InvalidCourseIdException(courseId);
+        }
+        throw new BadUsernameException(studentUserame);
+    }
+
+    @Override
+    public Integer findLikesForAnswer(Long id) {
+        Integer professorPositiveReactions = this.professorReactionRepository.findAllByAnswerIdAndReaction(id, true).size();
+        Integer studentPositiveReactions = this.studentReactionRepository.findAllByAnswerIdAndReaction(id, true).size();
+        Integer professorNegativeReactions = this.professorReactionRepository.findAllByAnswerIdAndReaction(id, false).size();
+        Integer studentNegativeReactions = this.studentReactionRepository.findAllByAnswerIdAndReaction(id, false).size();
+        return (professorPositiveReactions + studentPositiveReactions) - (professorNegativeReactions+studentNegativeReactions);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/QuestionTaggedWithCategoryServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/QuestionTaggedWithCategoryServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/QuestionTaggedWithCategoryServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,46 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidCategoryIdException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidQuestionIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.Category;
+import bazi.finki.ukim.mk.finkiforums.Model.Question;
+import bazi.finki.ukim.mk.finkiforums.Model.QuestionTaggedWithCategory;
+import bazi.finki.ukim.mk.finkiforums.Repository.CategoryRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.QuestionRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.QuestionTaggedWithCategoryRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.QuestionTaggedWithCategoryService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class QuestionTaggedWithCategoryServiceImpl implements QuestionTaggedWithCategoryService {
+
+    private final QuestionTaggedWithCategoryRepository questionTaggedWithCategoryRepository;
+    private final QuestionRepository questionRepository;
+    private final CategoryRepository categoryRepository;
+
+    public QuestionTaggedWithCategoryServiceImpl(QuestionTaggedWithCategoryRepository questionTaggedWithCategoryRepository, QuestionRepository questionRepository, CategoryRepository categoryRepository) {
+        this.questionTaggedWithCategoryRepository = questionTaggedWithCategoryRepository;
+        this.questionRepository = questionRepository;
+        this.categoryRepository = categoryRepository;
+    }
+
+    @Override
+    public List<QuestionTaggedWithCategory> findAllTaggedQuestions() {
+        return questionTaggedWithCategoryRepository.findAll();
+    }
+
+    @Override
+    public QuestionTaggedWithCategory save(Long questionId, Long categoryId) {
+        if (this.questionRepository.findById(questionId).isPresent()){
+            if (this.categoryRepository.findById(categoryId).isPresent()){
+                Question question = this.questionRepository.findById(questionId).get();
+                Category category = this.categoryRepository.findById(categoryId).get();
+                return questionTaggedWithCategoryRepository.save(new QuestionTaggedWithCategory(question,category));
+            }
+            throw new InvalidCategoryIdException(categoryId);
+        }
+        throw new InvalidQuestionIdException(questionId);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/RegistrationServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/RegistrationServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/RegistrationServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,42 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Enumerations.UserType;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidUserTypeException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.IndexNotFoundException;
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Repository.ProfessorRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentRepository;
+import bazi.finki.ukim.mk.finkiforums.Response.UserResponse;
+import bazi.finki.ukim.mk.finkiforums.Service.RegistrationService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class RegistrationServiceImpl implements RegistrationService {
+
+    private final ProfessorRepository professorRepository;
+    private final StudentRepository studentRepository;
+
+    public RegistrationServiceImpl(ProfessorRepository professorRepository, StudentRepository studentRepository) {
+        this.professorRepository = professorRepository;
+        this.studentRepository = studentRepository;
+    }
+
+    @Override
+    public UserResponse create(String name, String lastName, String email, String username, String password, UserType userType,String index) {
+        if (userType.equals(UserType.PROFESSOR)){
+            Professor professor = new Professor(name,lastName,username,email,password);
+            professorRepository.save(professor);
+            return new UserResponse(professor.getUsername(),UserType.PROFESSOR);
+        }
+        else if (userType.equals(UserType.STUDENT)){
+            if (index==null){
+                throw new IndexNotFoundException();
+            }
+            Student student = new Student(name,lastName,username,email,password,index);
+            studentRepository.save(student);
+            return new UserResponse(student.getUsername(),UserType.STUDENT);
+        }
+        else throw new InvalidUserTypeException(userType);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentAttendingCourseServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentAttendingCourseServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentAttendingCourseServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,44 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InvalidCourseIdException;
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Model.StudentAttendingCourse;
+import bazi.finki.ukim.mk.finkiforums.Repository.CourseRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentAttendingCourseRepository;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentAttendingCourseService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class StudentAttendingCourseServiceImpl implements StudentAttendingCourseService {
+
+    private final StudentAttendingCourseRepository studentAttendingCourseRepository;
+    private final StudentRepository studentRepository;
+    private final CourseRepository courseRepository;
+
+    public StudentAttendingCourseServiceImpl(StudentAttendingCourseRepository studentAttendingCourseRepository, StudentRepository studentRepository, CourseRepository courseRepository) {
+        this.studentAttendingCourseRepository = studentAttendingCourseRepository;
+        this.studentRepository = studentRepository;
+        this.courseRepository = courseRepository;
+    }
+
+    public List<StudentAttendingCourse> findAllStudentsAndAllCourse(){
+        return this.studentAttendingCourseRepository.findAll();
+    }
+
+    @Override
+    public List<StudentAttendingCourse> findAllByStudentUsername(String username) {
+        return this.studentAttendingCourseRepository.findAllByStudentUsername(username);
+    }
+
+    @Override
+    public StudentAttendingCourse addCourseToStudent(String username, Long selectedCourse) {
+        Student student = studentRepository.findByUsername(username).orElseThrow(()->new BadUsernameException(username));
+        Course course = courseRepository.findById(selectedCourse).orElseThrow(()->new InvalidCourseIdException(selectedCourse));
+        return this.studentAttendingCourseRepository.save(new StudentAttendingCourse(student,course));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentReactionServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentReactionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentReactionServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,49 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Exceptions.InavlidStudentReaction;
+import bazi.finki.ukim.mk.finkiforums.Model.Answer;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Model.StudentReaction;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentReactionRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.AnswerService;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentReactionService;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentService;
+import jakarta.transaction.Transactional;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class StudentReactionServiceImpl implements StudentReactionService {
+
+    private final StudentReactionRepository studentReactionRepository;
+    private final StudentService studentService;
+    private final AnswerService answerService;
+
+    public StudentReactionServiceImpl(StudentReactionRepository studentReactionRepository, StudentService studentService, AnswerService answerService) {
+        this.studentReactionRepository = studentReactionRepository;
+        this.studentService = studentService;
+        this.answerService = answerService;
+    }
+
+    @Override
+    public List<StudentReaction> findAllReactionsByStudents() {
+        return this.studentReactionRepository.findAll();
+    }
+
+    @Override
+    public void saveReaction(Long id, String username, Boolean reaction) {
+        Student student = this.studentService.findStudentByUsername(username);
+        Answer answer = this.answerService.findById(id);
+        if (this.studentReactionRepository.findByAnswerIdAndStudentUsername(id, username).isPresent()){
+            StudentReaction studentReaction = this.studentReactionRepository.findByAnswerIdAndStudentUsername(id, username)
+                    .orElseThrow(InavlidStudentReaction::new);
+            studentReaction.setReaction(reaction);
+            this.studentReactionRepository.save(studentReaction);
+        }
+        else {
+            this.studentReactionRepository.save(new StudentReaction(student, answer, reaction));
+        }
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/StudentServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,30 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Exceptions.BadUsernameException;
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Repository.StudentRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Optional;
+
+@Service
+public class StudentServiceImpl implements StudentService {
+
+    private final StudentRepository studentRepository;
+
+    public StudentServiceImpl(StudentRepository studentRepository) {
+        this.studentRepository = studentRepository;
+    }
+
+    @Override
+    public List<Student> findAllStudents() {
+        return this.studentRepository.findAll();
+    }
+
+    @Override
+    public Student findStudentByUsername(String username) {
+        return this.studentRepository.findByUsername(username).orElseThrow(() -> new BadUsernameException(username));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/SubjectServiceImpl.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/SubjectServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/ServiceImpl/SubjectServiceImpl.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,28 @@
+package bazi.finki.ukim.mk.finkiforums.Service.ServiceImpl;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Subject;
+import bazi.finki.ukim.mk.finkiforums.Repository.SubjectRepository;
+import bazi.finki.ukim.mk.finkiforums.Service.SubjectService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class SubjectServiceImpl implements SubjectService {
+
+    private  final SubjectRepository subjectRepository;
+
+    public SubjectServiceImpl(SubjectRepository subjectRepository) {
+        this.subjectRepository = subjectRepository;
+    }
+
+    public List<Subject> findAllSubjects(){
+        return this.subjectRepository.findAll();
+    }
+
+    @Override
+    public Subject findById(Long id) {
+        return this.subjectRepository.findById(id).orElse(null);
+        //add error handling
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentAttendingCourseService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentAttendingCourseService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentAttendingCourseService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.StudentAttendingCourse;
+
+import java.util.List;
+
+public interface StudentAttendingCourseService {
+    List<StudentAttendingCourse> findAllStudentsAndAllCourse();
+    List<StudentAttendingCourse> findAllByStudentUsername(String username);
+
+    StudentAttendingCourse addCourseToStudent(String username, Long selectedCourse);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentReactionService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentReactionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentReactionService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,10 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.StudentReaction;
+
+import java.util.List;
+
+public interface StudentReactionService {
+    List<StudentReaction> findAllReactionsByStudents();
+    void saveReaction(Long id, String username, Boolean reaction);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/StudentService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,12 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+
+import java.util.List;
+import java.util.Optional;
+
+public interface StudentService {
+    List<Student> findAllStudents();
+
+    Student findStudentByUsername(String username);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/SubjectService.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/SubjectService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Service/SubjectService.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,10 @@
+package bazi.finki.ukim.mk.finkiforums.Service;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Subject;
+
+import java.util.List;
+
+public interface SubjectService {
+    List<Subject> findAllSubjects();
+    Subject findById(Long id);
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/AdminController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/AdminController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/AdminController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,34 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Admin;
+import bazi.finki.ukim.mk.finkiforums.Service.AdminPanelService;
+import bazi.finki.ukim.mk.finkiforums.Service.AdminService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/admin")
+public class AdminController {
+
+    private final AdminService adminService;
+    private final AdminPanelService adminPanelService;
+
+    public AdminController(AdminService adminService, AdminPanelService adminPanelService) {
+        this.adminService = adminService;
+        this.adminPanelService = adminPanelService;
+    }
+
+    @GetMapping("/all")
+    public List<Admin> getAllAdmins(){
+        return this.adminService.findAllAdmins();
+    }
+
+    @GetMapping("/admin-panel/{id}")
+    public List<Map<String, Object>> getStats(@PathVariable int id){
+        return adminPanelService.getStats(id);
+    }
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/AnswerController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/AnswerController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/AnswerController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,35 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Answer;
+import bazi.finki.ukim.mk.finkiforums.Service.AnswerService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/answers")
+public class AnswerController {
+    private final AnswerService answerService;
+
+    public AnswerController(AnswerService answerService) {
+        this.answerService = answerService;
+    }
+
+    @GetMapping("/all")
+    public List<Answer> findAllAnswers(){
+        return this.answerService.findAllAnswers();
+    }
+
+    @GetMapping("/question/{id}")
+    public List<Answer> findAllAnswersForQuestion(@PathVariable Long id){
+        return this.answerService.findAllByQuestionId(id);
+    }
+
+    @GetMapping("/add")
+    public Answer addAnswer(@RequestParam String content,
+                            @RequestParam String username,
+                            @RequestParam Long questionId){
+        return this.answerService.save(content,username,questionId);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/CategoryController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/CategoryController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/CategoryController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,27 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Category;
+import bazi.finki.ukim.mk.finkiforums.Service.CategoryService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/categories")
+public class CategoryController {
+
+    private final CategoryService categoryService;
+
+    public CategoryController(CategoryService categoryService) {
+        this.categoryService = categoryService;
+    }
+
+    @GetMapping("/all")
+    public List<Category> findAllCategories(){
+        return this.categoryService.findAllCategories();
+    }
+
+    @GetMapping("/{id}")
+    public Category findById(@PathVariable Long id) {return this.categoryService.findById(id);}
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/CourseController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/CourseController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/CourseController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,33 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Course;
+import bazi.finki.ukim.mk.finkiforums.Service.CourseService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("api/courses")
+public class CourseController {
+    private final CourseService courseService;
+
+    public CourseController(CourseService courseService) {
+        this.courseService = courseService;
+    }
+
+    @GetMapping("/all")
+    public List<Course> findAllCourses(){
+        return this.courseService.findAllCourses();
+    }
+
+    @GetMapping("/by-subject/{id}")
+    public List<Course> findAllCoursesBySubjectId(@PathVariable Long id){
+        return this.courseService.findAllCoursesBySubjectId(id);
+    }
+    @GetMapping("/course/{id}")
+    public Course findCourse(@PathVariable Long id){
+        return this.courseService.findById(id);
+    }
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/LoginController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/LoginController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/LoginController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,22 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Response.UserResponse;
+import bazi.finki.ukim.mk.finkiforums.Service.LoginService;
+import org.springframework.web.bind.annotation.*;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/login")
+public class LoginController {
+    private final LoginService loginService;
+
+    public LoginController(LoginService loginService) {
+        this.loginService = loginService;
+    }
+
+    @GetMapping
+    public UserResponse loginUser(@RequestParam(name = "username") String username,
+                                  @RequestParam(name = "password") String password){
+        return this.loginService.findUserByUsername(username, password);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/MaterialAboutQuestionController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/MaterialAboutQuestionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/MaterialAboutQuestionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,25 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.MaterialAboutQuestion;
+import bazi.finki.ukim.mk.finkiforums.Service.MaterialAboutQuestionService;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("api/material-questions")
+public class MaterialAboutQuestionController {
+    private final MaterialAboutQuestionService materialAboutQuestionService;
+
+    public MaterialAboutQuestionController(MaterialAboutQuestionService materialAboutQuestionService) {
+        this.materialAboutQuestionService = materialAboutQuestionService;
+    }
+    @GetMapping("/all")
+    public List<MaterialAboutQuestion> findAllMaterialAboutQuestions(){
+        return this.materialAboutQuestionService.findAllMaterialAboutQuestion();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/MaterialController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/MaterialController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/MaterialController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,74 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+
+import bazi.finki.ukim.mk.finkiforums.Model.Material;
+import bazi.finki.ukim.mk.finkiforums.Service.LoginService;
+import bazi.finki.ukim.mk.finkiforums.Service.MaterialService;
+import org.springframework.core.io.Resource;
+import org.springframework.core.io.UrlResource;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.util.StringUtils;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.util.ArrayList;
+import java.util.List;
+
+import static java.nio.file.Paths.get;
+import static org.springframework.http.HttpHeaders.CONTENT_DISPOSITION;
+
+@CrossOrigin
+@RestController
+@RequestMapping("api/materials")
+public class MaterialController {
+    private final MaterialService materialService;
+    private final LoginService loginService;
+
+    public MaterialController(MaterialService materialService, LoginService loginService) {
+        this.materialService = materialService;
+        this.loginService = loginService;
+    }
+
+    @GetMapping("/all")
+    public List<Material> findAllMaterials() {
+        return this.materialService.findAllMaterials();
+    }
+
+    @GetMapping("/all/{courseId}")
+    public List<String> findAllMaterialsForCourseId(@PathVariable Long courseId) {
+        return this.materialService.findAllMaterialsForCourseId(courseId);
+    }
+
+    public static final String DIRECTORY = System.getProperty("user.home") + "/Downloads/ForUploading/";
+
+    @PostMapping("/upload/{courseId}")
+    public ResponseEntity<List<String>> uploadFiles(@RequestParam("files") List<MultipartFile> multipartFiles,
+                                                    @PathVariable Long courseId) {
+        List<String> filenames = new ArrayList<>();
+        for (MultipartFile file : multipartFiles) {
+            filenames.add(StringUtils.cleanPath(file.getOriginalFilename()));
+            this.materialService.save(file.getOriginalFilename(), this.loginService.getActiveProfessorUsername(), courseId);
+        }
+        return ResponseEntity.ok().body(filenames);
+    }
+
+    @GetMapping("download/{filename}")
+    public ResponseEntity<Resource> downloadFiles(@PathVariable("filename") String filename) throws IOException {
+        Path filePath = get(DIRECTORY).toAbsolutePath().normalize().resolve(filename);
+        if (!Files.exists(filePath)) {
+            throw new FileNotFoundException(filename + " was not found on the server");
+        }
+        Resource resource = new UrlResource(filePath.toUri());
+        HttpHeaders httpHeaders = new HttpHeaders();
+        httpHeaders.add("File-Name", filename);
+        httpHeaders.add(CONTENT_DISPOSITION, "attachment;File-Name=" + resource.getFilename());
+        return ResponseEntity.ok().contentType(MediaType.parseMediaType(Files.probeContentType(filePath)))
+                .headers(httpHeaders).body(resource);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorConsultsController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorConsultsController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorConsultsController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,26 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorConsults;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorConsultsService;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/professor-consults")
+public class ProfessorConsultsController {
+    private final ProfessorConsultsService professorConsultsService;
+
+    public ProfessorConsultsController(ProfessorConsultsService professorConsultsService) {
+        this.professorConsultsService = professorConsultsService;
+    }
+
+    @GetMapping("/all")
+    private List<ProfessorConsults> findAllConsults(){
+        return this.professorConsultsService.findAllConsults();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,26 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Professor;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorService;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/professors")
+public class ProfessorController {
+    private final ProfessorService professorService;
+
+    public ProfessorController(ProfessorService professorService) {
+        this.professorService = professorService;
+    }
+
+    @GetMapping("/all")
+    public List<Professor> findAllProfessors(){
+        return this.professorService.findAllProfessors();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorReactionController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorReactionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorReactionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,32 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorReactionService;
+import bazi.finki.ukim.mk.finkiforums.Service.QuestionService;
+import org.springframework.web.bind.annotation.*;
+
+@RestController
+@CrossOrigin
+@RequestMapping("/api/professor-reacts")
+public class ProfessorReactionController {
+    private final ProfessorReactionService professorReactionService;
+    private final QuestionService questionService;
+
+    public ProfessorReactionController(ProfessorReactionService professorReactionService, QuestionService questionService) {
+        this.professorReactionService = professorReactionService;
+        this.questionService = questionService;
+    }
+
+    @PostMapping("/like/{id}")
+    public Integer likeAnswer(@PathVariable Long id,
+                              @RequestBody String username) {
+        this.professorReactionService.saveReaction(id, username, true);
+        return this.questionService.findLikesForAnswer(id);
+    }
+
+    @PostMapping("/unlike/{id}")
+    public Integer unlikeAnswer(@PathVariable Long id,
+                                @RequestBody String username) {
+        this.professorReactionService.saveReaction(id, username, false);
+        return this.questionService.findLikesForAnswer(id);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorTeachingCourseController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorTeachingCourseController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ProfessorTeachingCourseController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,33 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorTeachingCourse;
+import bazi.finki.ukim.mk.finkiforums.Model.StudentAttendingCourse;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorTeachingCourseService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/professor-courses")
+public class ProfessorTeachingCourseController {
+    private final ProfessorTeachingCourseService professorTeachingCourseService;
+
+    public ProfessorTeachingCourseController(ProfessorTeachingCourseService professorTeachingCourseService) {
+        this.professorTeachingCourseService = professorTeachingCourseService;
+    }
+
+    @GetMapping("/all")
+    public List<ProfessorTeachingCourse> findAllProfessorsTeachingCourses(){
+        return this.professorTeachingCourseService.findAllProfessorsTeachingCourses();
+    }
+    @GetMapping()
+    public List<ProfessorTeachingCourse> findAllCoursesForProfessor(@RequestParam(name = "username") String username){
+        return this.professorTeachingCourseService.findAllByProfessorUsername(username);
+    }
+    @GetMapping("/add")
+    public ProfessorTeachingCourse addCourseToProfessor(@RequestParam(name = "username") String username,
+                                                     @RequestParam(name = "selectedCourse") String selectedCourse){
+        return this.professorTeachingCourseService.addCourseToProfessor(username,Long.parseLong(selectedCourse));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/QuestionController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/QuestionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/QuestionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,48 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Question;
+import bazi.finki.ukim.mk.finkiforums.Service.QuestionService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/questions")
+public class QuestionController {
+    private final QuestionService questionService;
+
+    public QuestionController(QuestionService questionService) {
+        this.questionService = questionService;
+    }
+
+    @GetMapping("/all")
+    public List<Question> findAllQuestions(){
+        return this.questionService.findAllQuestions();
+    }
+
+    @GetMapping("/{id}")
+    public List<Question> findAllQuestionsForCourse(@PathVariable Long id){
+        return this.questionService.findAllQuestionsByCourse(id);
+    }
+
+    @GetMapping("/question/{id}")
+    public Question findQuestionById(@PathVariable Long id){
+        return this.questionService.findById(id);
+    }
+
+    @GetMapping("/add")
+    public Question addQuestion(@RequestParam String title,
+                               @RequestParam String content,
+                               @RequestParam String studentUserame,
+                               @RequestParam Long courseId){
+            return this.questionService.save(title,content,studentUserame,courseId);
+    }
+
+    @GetMapping("/likes/{id}")
+    public Integer findLikesForAnswer(@PathVariable Long id){
+        return this.questionService.findLikesForAnswer(id);
+    }
+
+
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/QuestionTaggedWithCategoryController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/QuestionTaggedWithCategoryController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/QuestionTaggedWithCategoryController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,28 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.QuestionTaggedWithCategory;
+import bazi.finki.ukim.mk.finkiforums.Service.QuestionTaggedWithCategoryService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/tagged-questions")
+public class QuestionTaggedWithCategoryController {
+    private final QuestionTaggedWithCategoryService questionTaggedWithCategoryService;
+
+    public QuestionTaggedWithCategoryController(QuestionTaggedWithCategoryService questionTaggedWithCategoryService) {
+        this.questionTaggedWithCategoryService = questionTaggedWithCategoryService;
+    }
+
+    @GetMapping("/all")
+    public List<QuestionTaggedWithCategory> findAllTaggedQuestions(){
+        return this.questionTaggedWithCategoryService.findAllTaggedQuestions();
+    }
+
+    @GetMapping("/add/{categoryId}")
+    public QuestionTaggedWithCategory save(@RequestParam Long questionId, @PathVariable Long categoryId){
+        return this.questionTaggedWithCategoryService.save(questionId,categoryId);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ReactionController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ReactionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/ReactionController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,34 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.ProfessorReaction;
+import bazi.finki.ukim.mk.finkiforums.Model.StudentReaction;
+import bazi.finki.ukim.mk.finkiforums.Service.ProfessorReactionService;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentReactionService;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/reactions")
+public class ReactionController {
+    private final ProfessorReactionService professorReactionService;
+    private final StudentReactionService studentReactionService;
+
+    public ReactionController(ProfessorReactionService professorReactionService, StudentReactionService studentReactionService) {
+        this.professorReactionService = professorReactionService;
+        this.studentReactionService = studentReactionService;
+    }
+
+    @GetMapping("/professors/all")
+    public List<ProfessorReaction> findAllReactionsByProfessors(){
+        return this.professorReactionService.findAllReactionsByProfessors();
+    }
+    @GetMapping("/students/all")
+    public List<StudentReaction> findAllReactionsByStudents(){
+        return this.studentReactionService.findAllReactionsByStudents();
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/RegisterController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/RegisterController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/RegisterController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,30 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Enumerations.UserType;
+import bazi.finki.ukim.mk.finkiforums.Response.UserResponse;
+import bazi.finki.ukim.mk.finkiforums.Service.RegistrationService;
+import org.springframework.web.bind.annotation.*;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/register")
+public class RegisterController {
+
+    private final RegistrationService registrationService;
+
+    public RegisterController(RegistrationService registrationService) {
+        this.registrationService = registrationService;
+    }
+
+    @GetMapping
+    public UserResponse registerUser(@RequestParam(name = "name") String name,
+                                     @RequestParam(name = "lastName") String lastName,
+                                     @RequestParam(name = "email") String email,
+                                     @RequestParam(name = "username") String username,
+                                     @RequestParam(name = "password") String password,
+                                     @RequestParam(name = "userType") String userType,
+                                     @RequestParam(name = "index", required = false) String index){
+        UserType uType = userType.equals(UserType.PROFESSOR.name()) ? UserType.PROFESSOR : UserType.STUDENT;
+        return this.registrationService.create(name,lastName,email,username,password,uType,index);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentAttendingCourseController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentAttendingCourseController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentAttendingCourseController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,31 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.StudentAttendingCourse;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentAttendingCourseService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/student-courses")
+public class StudentAttendingCourseController {
+    private final StudentAttendingCourseService studentAttendingCourseService;
+
+    public StudentAttendingCourseController(StudentAttendingCourseService studentAttendingCourseService) {
+        this.studentAttendingCourseService = studentAttendingCourseService;
+    }
+    @GetMapping("/all")
+    public List<StudentAttendingCourse> findAllStudentsAndAllCourse(){
+        return this.studentAttendingCourseService.findAllStudentsAndAllCourse();
+    }
+    @GetMapping()
+    public List<StudentAttendingCourse> findAllCoursesForStudent(@RequestParam(name = "username") String username){
+        return this.studentAttendingCourseService.findAllByStudentUsername(username);
+    }
+    @GetMapping("/add")
+    public StudentAttendingCourse addCourseToStudent(@RequestParam(name = "username") String username,
+                                                           @RequestParam(name = "selectedCourse") String selectedCourse){
+        return this.studentAttendingCourseService.addCourseToStudent(username,Long.parseLong(selectedCourse));
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,28 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Student;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentService;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/students")
+public class StudentController {
+    private final StudentService studentService;
+
+    public StudentController(StudentService studentService) {
+        this.studentService = studentService;
+    }
+
+    @GetMapping("/all")
+    public List<Student> findAllStudents(){
+        return this.studentService.findAllStudents();
+    }
+
+    @GetMapping("/{username}")
+    public Student findByUsername(@PathVariable String username){
+        return this.studentService.findStudentByUsername(username);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentReactsController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentReactsController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/StudentReactsController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,33 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Service.QuestionService;
+import bazi.finki.ukim.mk.finkiforums.Service.StudentReactionService;
+import org.springframework.web.bind.annotation.*;
+
+@RestController
+@RequestMapping("/api/student-reacts")
+@CrossOrigin
+public class StudentReactsController {
+
+    private final StudentReactionService studentReactionService;
+    private final QuestionService questionService;
+
+    public StudentReactsController(StudentReactionService studentReactionService, QuestionService questionService) {
+        this.studentReactionService = studentReactionService;
+        this.questionService = questionService;
+    }
+
+    @PostMapping("/like/{id}")
+    public Integer likeAnswer(@PathVariable Long id,
+                              @RequestBody String username) {
+        this.studentReactionService.saveReaction(id, username, true);
+        return this.questionService.findLikesForAnswer(id);
+    }
+
+    @PostMapping("/unlike/{id}")
+    public Integer unlikeAnswer(@PathVariable Long id,
+                                @RequestBody String username) {
+        this.studentReactionService.saveReaction(id, username, false);
+        return this.questionService.findLikesForAnswer(id);
+    }
+}
Index: Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/SubjectController.java
===================================================================
--- Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/SubjectController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/java/bazi/finki/ukim/mk/finkiforums/Web/SubjectController.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,27 @@
+package bazi.finki.ukim.mk.finkiforums.Web;
+
+import bazi.finki.ukim.mk.finkiforums.Model.Subject;
+import bazi.finki.ukim.mk.finkiforums.Service.SubjectService;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@CrossOrigin
+@RestController
+@RequestMapping("/api/subjects")
+public class SubjectController {
+
+    public final SubjectService subjectService;
+
+    public SubjectController(SubjectService subjectService) {
+        this.subjectService = subjectService;
+    }
+
+    @GetMapping("/all")
+    public List<Subject> findAllSubjects(){
+        return this.subjectService.findAllSubjects();
+    }
+}
Index: Sources/backend/src/main/resources/application.properties
===================================================================
--- Sources/backend/src/main/resources/application.properties	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/main/resources/application.properties	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,16 @@
+spring.datasource.url=jdbc:postgresql://localhost:9999/db_202223z_va_prj_finkiforums
+spring.datasource.username=db_202223z_va_prj_finkiforums_owner
+spring.datasource.password=57fce649fc48
+
+## default connection pool
+spring.datasource.hikari.connectionTimeout=20000
+spring.datasource.hikari.maximumPoolSize=5
+
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQL95Dialect
+spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
+
+spring.jpa.hibernate.ddl-auto=validate
+spring.jpa.show-sql=true
+
+spring.servlet.multipart.max-file-size=100000000MB
+spring.servlet.multipart.max-request-size=100000000MB
Index: Sources/backend/src/test/java/bazi/finki/ukim/mk/finkiforums/FinkiForumsApplicationTests.java
===================================================================
--- Sources/backend/src/test/java/bazi/finki/ukim/mk/finkiforums/FinkiForumsApplicationTests.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
+++ Sources/backend/src/test/java/bazi/finki/ukim/mk/finkiforums/FinkiForumsApplicationTests.java	(revision 84234294abb1e8ce0876e888a7bec532eaeb6a14)
@@ -0,0 +1,13 @@
+package bazi.finki.ukim.mk.finkiforums;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class FinkiForumsApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}
