diff --git a/.Rhistory b/.Rhistory
deleted file mode 100644
index f759cde..0000000
--- a/.Rhistory
+++ /dev/null
@@ -1,295 +0,0 @@
-shiny::runApp('ap1')
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-p("Shiny jest dostpny w repozytorium CRAN, wiec mozesz zainstalowac go w zwykly sposob z konsoli R:"),
-code("install.packages(\"shiny\")"),
-br(),
-br(),
-br(),
-br(),
-img(src = "rstudio.png", height = 60, width = 200),
-p("Shiny jest produktem",span("RStudio", style = "color:red"))
-),
-mainPanel(
-h1("Wprowadzenie do Shiny", align = "left"),
-p("Shiny jest nowym pakietem RStudio, ktory",em("bardzo ulatwia"),"tworzenie interaktywnych aplikacji internetowych w R."),
-br(),
-p("Duzo informacji i przykladow znajduje sie na",a("stronie Shiny."),""),
-br(),
-br(),
-h2("Ficzery"),
-p("-Tworz uzyteczne aplikacje internetowe zaledwie kilkoma liniami kodu - nie jest wymagana znajomosc JavaScriptu"),
-p("-Aplikacje Shiny aktualizuja sie tak samo" ,strong("szybko"),"jak arkusze danych np. Excel. Wyniki zmieniaja sie natychmiast - gdy uzytkownicy modyfikuja dane wejsciowe, nie ma koniecznosci ponownego przeladowania strony.")
-)
-)
-)
-server <- function(input, output) {
-}
-shinyApp(ui = ui, server = server)
-runApp('ap1')
-shiny::runApp('C:/Users/plalj/Desktop/TakeCareApp/app')
-# summarize accuracy
-table(predictions, iris$Species)
-library(VGAM)
-# load data
-data(iris)
-# fit model
-fit <- vglm(Species~., family=multinomial, data=iris)
-# summarize the fit
-summary(fit)
-# make predictions
-probabilities <- predict(fit, iris[,1:4], type="response")
-predictions <- apply(probabilities, 1, which.max)
-predictions[which(predictions=="1")] <- levels(iris$Species)[1]
-predictions[which(predictions=="2")] <- levels(iris$Species)[2]
-predictions[which(predictions=="3")] <- levels(iris$Species)[3]
-# summarize accuracy
-table(predictions, iris$Species)
-# load the package
-library(MASS)
-data(iris)
-# fit model
-fit <- lda(Species~., data=iris)
-# summarize the fit
-summary(fit)
-# make predictions
-predictions <- predict(fit, iris[,1:4])$class
-# summarize accuracy
-table(predictions, iris$Species)
-# fit model
-fit <- lda(Species~., data=iris)
-fit
-# summarize the fit
-summary(fit)
-# make predictions
-predictions <- predict(fit, iris[,1:4])$class
-predictions
-# summarize accuracy
-table(predictions, iris$Species)
-shiny::runApp('C:/Users/plalj/Desktop/TakeCareApp/app')
-setwd("C:/Users/plalj/Desktop/TakeCareApp")
-shiny::runApp('app')
-runApp('app')
diff --git a/Dokumentacja.pdf b/Dokumentacja.pdf
deleted file mode 100644
index 454cada..0000000
Binary files a/Dokumentacja.pdf and /dev/null differ
diff --git a/Raport użyteczności wersji końcowej.pdf b/Raport użyteczności wersji końcowej.pdf
deleted file mode 100644
index 66c1954..0000000
Binary files a/Raport użyteczności wersji końcowej.pdf and /dev/null differ
diff --git a/Raport z testowania wersji końcowej.pdf b/Raport z testowania wersji końcowej.pdf
deleted file mode 100644
index c3d558d..0000000
Binary files a/Raport z testowania wersji końcowej.pdf and /dev/null differ
diff --git a/Test.cs b/Test.cs
deleted file mode 100644
index d6529a1..0000000
--- a/Test.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using OpenQA.Selenium;
-using OpenQA.Selenium.Firefox;
-namespace Aplikacja
-{
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Rozpoczynam test logowania!");
-
- var binary = new FirefoxBinary(@"C:\software\firefox\firefox.exe");
- var profile = new FirefoxProfile();
- FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(@"J:\Desktop\Automaty");
- service.FirefoxBinaryPath = @"C:\software\firefox\firefox.exe";
- var driver = new FirefoxDriver();
-
- var url = "http://127.0.0.1:5173/#!/login";
- driver.Manage().Window.Maximize();
- driver.Navigate().GoToUrl(url);
-
- string loginX="//input[@id='login']";
- string hasloX = "//input[@id='pass']";
- string zalogujX = "//button[@id='loginBtn']";
-
- var login = driver.FindElement(By.XPath(loginX));
- var pass = driver.FindElement(By.XPath(hasloX));
- var loguj = driver.FindElement(By.XPath(zalogujX));
-
- string log = "student";
- string pas = "student";
-
- login.Click();
- login.Clear();
- login.SendKeys(log);
- pass.Click();
- pass.Clear();
- pass.SendKeys(pas);
- loguj.Click();
-
- //driver.Close();
-
- Console.WriteLine("Test logowania zakończony powodzeniem!");
-
-
-
-
- }
- }
-}
diff --git a/app/calculator.R b/app/calculator.R
index ee0451d..ed79f01 100644
--- a/app/calculator.R
+++ b/app/calculator.R
@@ -185,7 +185,7 @@ calculatorServer <- function(input, output, session) {
)
- r<-httr::POST("http://localhost:8080/api/prediction/save",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),body=prediction,encode = 'json')
+ r<-httr::POST("https://syi-back.herokuapp.com/api/prediction/save",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),body=prediction,encode = 'json')
# SPRAWDZENIE POBIERANIA JEDNEGO I WIELU POMIAROW
# r<-httr::GET("http://localhost:8080/api/prediction/get/7",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
diff --git a/app/calculator_view.R b/app/calculator_view.R
index 9d14168..7d15b2e 100644
--- a/app/calculator_view.R
+++ b/app/calculator_view.R
@@ -38,7 +38,7 @@ calculatorViewServer <- function(input, output, session) {
component2 <- reactive({
if(length(get_query_param())==1 ){
queryParam = as.numeric(get_query_param())
- r = httr::GET(paste("http://localhost:8080/api/prediction/get/",as.character(queryParam),sep = ""),add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
+ r = httr::GET(paste("https://syi-back.herokuapp.com/api/prediction/get/",as.character(queryParam),sep = ""),add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
r
}
@@ -47,7 +47,7 @@ calculatorViewServer <- function(input, output, session) {
if(length(get_query_param())==1 ){
queryParam = as.numeric(get_query_param())
- r = httr::GET(paste("http://localhost:8080/api/prediction/get/",as.character(queryParam),sep = ""),add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
+ r = httr::GET(paste("https://syi-back.herokuapp.com/api/prediction/get/",as.character(queryParam),sep = ""),add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
r
}else{
diff --git a/app/firmy_module.R b/app/firmy_module.R
index 9f698ad..011a73a 100644
--- a/app/firmy_module.R
+++ b/app/firmy_module.R
@@ -55,7 +55,7 @@ firmyServer <- function(input, output,session) {
componentFirms<-eventReactive(input$pageFIRMS,{
- r<-httr::GET("http://localhost:8080/api/firms/all",encode = 'json')
+ r<-httr::GET("https://syi-back.herokuapp.com/api/firms/all",encode = 'json')
r
diff --git a/app/login_module.R b/app/login_module.R
index 1a03f5b..d2f0bb4 100644
--- a/app/login_module.R
+++ b/app/login_module.R
@@ -63,7 +63,7 @@ loginServer <- function(input, output,session) {
to_send = list(login = tmp$login,
password = tmp$pass)
- r<-httr::POST("http://localhost:8080/api/login",body=to_send,encode = 'json')
+ r<-httr::POST("https://syi-back.herokuapp.com/api/login",body=to_send,encode = 'json')
if(r$status_code==200){
diff --git a/app/profil_module.R b/app/profil_module.R
index 582fbdf..f88629a 100644
--- a/app/profil_module.R
+++ b/app/profil_module.R
@@ -100,7 +100,7 @@ profilServer <- function(input, output,session) {
- r<-httr::PUT("http://localhost:8080/api/profile",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),body=to_send,encode = 'json')
+ r<-httr::PUT("https://syi-back.herokuapp.com/api/profile",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),body=to_send,encode = 'json')
if (r$status_code==200){
TRUE
@@ -125,7 +125,7 @@ profilServer <- function(input, output,session) {
downloadPersonalData<-reactive({
- r<-httr::GET("http://localhost:8080/api/profile",add_headers(Authorization=paste("Bearer",input$token,sep=" ")))
+ r<-httr::GET("https://syi-back.herokuapp.com/api/profile",add_headers(Authorization=paste("Bearer",input$token,sep=" ")))
r
@@ -133,7 +133,7 @@ profilServer <- function(input, output,session) {
downloadHistoryData<-reactive({
- r<-httr::GET("http://localhost:8080/api/prediction/usersPredictions/ind",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
+ r<-httr::GET("https://syi-back.herokuapp.com/api/prediction/usersPredictions/ind",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
print("Reactive hist")
r
@@ -174,10 +174,10 @@ profilServer <- function(input, output,session) {
})
observeEvent(input$del_button,{
- r<-httr::DELETE(paste("http://localhost:8080/api/prediction/delete/",input$del_button,sep = ""),add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
+ r<-httr::DELETE(paste("https://syi-back.herokuapp.com/api/prediction/delete/",input$del_button,sep = ""),add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
if(r$status_code==200){
- rr<-httr::GET("http://localhost:8080/api/prediction/usersPredictions/ind",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
+ rr<-httr::GET("https://syi-back.herokuapp.com/api/prediction/usersPredictions/ind",add_headers(Authorization=paste("Bearer",input$token,sep=" ")),encode = 'json')
historyDataVector(rr)
diff --git a/app/register_module.R b/app/register_module.R
index 5018f13..16f6916 100644
--- a/app/register_module.R
+++ b/app/register_module.R
@@ -87,7 +87,7 @@ registerServer <- function(input, output,session) {
to_send = list(
personalDataDTO = personalData,
userDTO = userData)
- r<-httr::POST("http://localhost:8080/api/register",body=to_send,encode = 'json')
+ r<-httr::POST("https://syi-back.herokuapp.com/api/register",body=to_send,encode = 'json')
# print(content(r))
if (r$status_code==200){
diff --git a/backend/.idea/compiler.xml b/backend/.idea/compiler.xml
deleted file mode 100644
index c665e75..0000000
--- a/backend/.idea/compiler.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__antlr_antlr_2_7_7.xml b/backend/.idea/libraries/Maven__antlr_antlr_2_7_7.xml
deleted file mode 100644
index b8d93d8..0000000
--- a/backend/.idea/libraries/Maven__antlr_antlr_2_7_7.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml b/backend/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml
deleted file mode 100644
index 6fec8f4..0000000
--- a/backend/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml b/backend/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml
deleted file mode 100644
index 9eb8596..0000000
--- a/backend/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml
deleted file mode 100644
index 33c30b4..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
deleted file mode 100644
index 06441f4..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_4.xml
deleted file mode 100644
index 5de0355..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_4.xml
deleted file mode 100644
index 398994e..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_9_4.xml
deleted file mode 100644
index 77665b9..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_4.xml
deleted file mode 100644
index 4793ed1..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_4.xml
deleted file mode 100644
index d84e40f..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_jaxb_annotations_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_jaxb_annotations_2_9_4.xml
deleted file mode 100644
index cafc86e..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_jaxb_annotations_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_4.xml b/backend/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_4.xml
deleted file mode 100644
index ee544ba..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_5_0_3.xml b/backend/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_5_0_3.xml
deleted file mode 100644
index c08dcae..0000000
--- a/backend/.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_5_0_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml b/backend/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml
deleted file mode 100644
index f19f6eb..0000000
--- a/backend/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml b/backend/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
deleted file mode 100644
index b8581a6..0000000
--- a/backend/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__com_zaxxer_HikariCP_2_7_8.xml b/backend/.idea/libraries/Maven__com_zaxxer_HikariCP_2_7_8.xml
deleted file mode 100644
index 848c412..0000000
--- a/backend/.idea/libraries/Maven__com_zaxxer_HikariCP_2_7_8.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml b/backend/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml
deleted file mode 100644
index 14681ee..0000000
--- a/backend/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml b/backend/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml
deleted file mode 100644
index e74f3ab..0000000
--- a/backend/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml b/backend/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml
deleted file mode 100644
index 5f032d2..0000000
--- a/backend/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml b/backend/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml
deleted file mode 100644
index 6978c0b..0000000
--- a/backend/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_0.xml b/backend/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_0.xml
deleted file mode 100644
index 59ff9c2..0000000
--- a/backend/.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__junit_junit_4_12.xml b/backend/.idea/libraries/Maven__junit_junit_4_12.xml
deleted file mode 100644
index d411041..0000000
--- a/backend/.idea/libraries/Maven__junit_junit_4_12.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml b/backend/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml
deleted file mode 100644
index 8280cea..0000000
--- a/backend/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_45.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_10.xml b/backend/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_10.xml
deleted file mode 100644
index 7b90f25..0000000
--- a/backend/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_10.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_10.xml b/backend/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_10.xml
deleted file mode 100644
index c9e49ad..0000000
--- a/backend/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_10.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml b/backend/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml
deleted file mode 100644
index b3d3858..0000000
--- a/backend/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml b/backend/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml
deleted file mode 100644
index 1083023..0000000
--- a/backend/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml b/backend/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml
deleted file mode 100644
index cbe5ca7..0000000
--- a/backend/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml b/backend/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml
deleted file mode 100644
index 1407c58..0000000
--- a/backend/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_28.xml b/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_28.xml
deleted file mode 100644
index c83f72e..0000000
--- a/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_28.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_28.xml b/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_28.xml
deleted file mode 100644
index a90b7bb..0000000
--- a/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_28.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_28.xml b/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_28.xml
deleted file mode 100644
index 66bd03f..0000000
--- a/backend/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_28.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml b/backend/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml
deleted file mode 100644
index d46e30a..0000000
--- a/backend/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml b/backend/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml
deleted file mode 100644
index 40adaaa..0000000
--- a/backend/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_3_1_4.xml b/backend/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_3_1_4.xml
deleted file mode 100644
index b510642..0000000
--- a/backend/.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_3_1_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/backend/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
deleted file mode 100644
index f58bbc1..0000000
--- a/backend/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml b/backend/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml
deleted file mode 100644
index 78dbe45..0000000
--- a/backend/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml b/backend/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml
deleted file mode 100644
index ce34f42..0000000
--- a/backend/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_hibernate_hibernate_core_5_2_14_Final.xml b/backend/.idea/libraries/Maven__org_hibernate_hibernate_core_5_2_14_Final.xml
deleted file mode 100644
index 3a3af4f..0000000
--- a/backend/.idea/libraries/Maven__org_hibernate_hibernate_core_5_2_14_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml b/backend/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml
deleted file mode 100644
index 6492b2b..0000000
--- a/backend/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_7_Final.xml b/backend/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_7_Final.xml
deleted file mode 100644
index a4f8873..0000000
--- a/backend/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_7_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_javassist_javassist_3_22_0_GA.xml b/backend/.idea/libraries/Maven__org_javassist_javassist_3_22_0_GA.xml
deleted file mode 100644
index ad65915..0000000
--- a/backend/.idea/libraries/Maven__org_javassist_javassist_3_22_0_GA.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_jboss_jandex_2_0_3_Final.xml b/backend/.idea/libraries/Maven__org_jboss_jandex_2_0_3_Final.xml
deleted file mode 100644
index b841e21..0000000
--- a/backend/.idea/libraries/Maven__org_jboss_jandex_2_0_3_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml b/backend/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
deleted file mode 100644
index 5f7dd01..0000000
--- a/backend/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml b/backend/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml
deleted file mode 100644
index a742a6d..0000000
--- a/backend/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml b/backend/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml
deleted file mode 100644
index af41e3b..0000000
--- a/backend/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml b/backend/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml
deleted file mode 100644
index 0bf8cf2..0000000
--- a/backend/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml b/backend/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml
deleted file mode 100644
index c4c54d6..0000000
--- a/backend/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml b/backend/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml
deleted file mode 100644
index 6073e53..0000000
--- a/backend/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/backend/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml
deleted file mode 100644
index 20e8163..0000000
--- a/backend/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_0_RELEASE.xml
deleted file mode 100644
index 6f53ce1..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_0_RELEASE.xml
deleted file mode 100644
index bb1e179..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_0_0_RELEASE.xml
deleted file mode 100644
index 11f80c1..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_0_RELEASE.xml
deleted file mode 100644
index da1a887..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_0_0_RELEASE.xml
deleted file mode 100644
index c479f04..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_0_0_RELEASE.xml
deleted file mode 100644
index ed5e1e3..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_0_0_RELEASE.xml
deleted file mode 100644
index 250e96a..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_0_RELEASE.xml
deleted file mode 100644
index 440dbd0..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_0_RELEASE.xml
deleted file mode 100644
index 35e7c76..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_0_RELEASE.xml
deleted file mode 100644
index b292009..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_0_RELEASE.xml
deleted file mode 100644
index b3063f3..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_0_RELEASE.xml
deleted file mode 100644
index d1159de..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_0_RELEASE.xml
deleted file mode 100644
index d298a45..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_0_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_0_RELEASE.xml
deleted file mode 100644
index 06ed00f..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_0_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_0_5_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_0_5_RELEASE.xml
deleted file mode 100644
index 85aa25c..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_0_5_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_0_5_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_0_5_RELEASE.xml
deleted file mode 100644
index f48b9dc..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_2_0_5_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_aop_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_aop_5_0_4_RELEASE.xml
deleted file mode 100644
index 42e3c72..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_aop_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_aspects_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_aspects_5_0_4_RELEASE.xml
deleted file mode 100644
index 1f498dd..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_aspects_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_beans_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_beans_5_0_4_RELEASE.xml
deleted file mode 100644
index 9d3252b..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_beans_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_context_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_context_5_0_4_RELEASE.xml
deleted file mode 100644
index 24e83c9..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_context_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_core_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_core_5_0_4_RELEASE.xml
deleted file mode 100644
index 2784300..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_core_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_expression_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_expression_5_0_4_RELEASE.xml
deleted file mode 100644
index 8151535..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_expression_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_4_RELEASE.xml
deleted file mode 100644
index d0484b5..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_4_RELEASE.xml
deleted file mode 100644
index 8b68fe1..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_orm_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_orm_5_0_4_RELEASE.xml
deleted file mode 100644
index 6e8a76f..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_orm_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_test_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_test_5_0_4_RELEASE.xml
deleted file mode 100644
index e8317f4..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_test_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_tx_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_tx_5_0_4_RELEASE.xml
deleted file mode 100644
index e6f1139..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_tx_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_web_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_web_5_0_4_RELEASE.xml
deleted file mode 100644
index 002d32d..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_web_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_4_RELEASE.xml b/backend/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_4_RELEASE.xml
deleted file mode 100644
index 0aed43d..0000000
--- a/backend/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_4_RELEASE.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml b/backend/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml
deleted file mode 100644
index 474c910..0000000
--- a/backend/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml b/backend/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml
deleted file mode 100644
index 33ccf19..0000000
--- a/backend/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/vcs.xml b/backend/.idea/vcs.xml
deleted file mode 100644
index 288b36b..0000000
--- a/backend/.idea/vcs.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml
deleted file mode 100644
index c2b8975..0000000
--- a/backend/.idea/workspace.xml
+++ /dev/null
@@ -1,203 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1538657724296
-
-
- 1538657724296
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/README.md b/backend/README.md
deleted file mode 100644
index 8e026f1..0000000
--- a/backend/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# TAS_Projekt
-
-W katalogu src/main/database znajsuje się skrypt SQL, który należy wczytać i uruchomić w bazie MySQL przed uruchomieniem programu.
diff --git a/backend/pom.xml b/backend/pom.xml
deleted file mode 100644
index c63793b..0000000
--- a/backend/pom.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
- 4.0.0
-
- TCA
- TCA_Project
- 1.0-SNAPSHOT
- jar
-
- TakeCareApp Application
- Spring Boot Web Application
-
-
- org.springframework.boot
- spring-boot-starter-parent
- 2.0.0.RELEASE
-
-
-
- UTF-8
- UTF-8
- 1.8
-
-
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-devtools
- runtime
-
-
- mysql
- mysql-connector-java
- runtime
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
- com.fasterxml.jackson.datatype
- jackson-datatype-jsr310
-
-
- com.fasterxml.jackson.dataformat
- jackson-dataformat-xml
-
-
- org.springframework.security
- spring-security-web
- 5.1.1.RELEASE
-
-
- org.springframework.security
- spring-security-config
- 5.1.1.RELEASE
-
-
- org.springframework.security
- spring-security-core
- 5.1.1.RELEASE
-
-
- javax.xml.bind
- jaxb-api
- 2.3.0
-
-
- io.jsonwebtoken
- jjwt
- 0.9.1
-
-
- org.projectlombok
- lombok
- 1.18.16
- provided
-
-
- org.postgresql
- postgresql
- 42.2.18
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
-
-
\ No newline at end of file
diff --git a/backend/src/main/database/dump.sql b/backend/src/main/database/dump.sql
deleted file mode 100644
index c17e124..0000000
--- a/backend/src/main/database/dump.sql
+++ /dev/null
@@ -1,181 +0,0 @@
---
--- PostgreSQL database dump
---
-
--- Dumped from database version 10.15
--- Dumped by pg_dump version 10.15
-
--- Started on 2020-12-19 22:52:46
-
-SET statement_timeout = 0;
-SET lock_timeout = 0;
-SET idle_in_transaction_session_timeout = 0;
-SET client_encoding = 'UTF8';
-SET standard_conforming_strings = on;
-SELECT pg_catalog.set_config('search_path', '', false);
-SET check_function_bodies = false;
-SET xmloption = content;
-SET client_min_messages = warning;
-SET row_security = off;
-
---
--- TOC entry 1 (class 3079 OID 12924)
--- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
---
-
-CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
-
-
---
--- TOC entry 2815 (class 0 OID 0)
--- Dependencies: 1
--- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
---
-
-COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
-
-
-SET default_tablespace = '';
-
-SET default_with_oids = false;
-
---
--- TOC entry 196 (class 1259 OID 24577)
--- Name: roles; Type: TABLE; Schema: public; Owner: postgres
---
-
-CREATE TABLE public.roles (
- name character varying(255) NOT NULL
-);
-
-
-ALTER TABLE public.roles OWNER TO postgres;
-
---
--- TOC entry 198 (class 1259 OID 32808)
--- Name: users; Type: TABLE; Schema: public; Owner: postgres
---
-
-CREATE TABLE public.users (
- id integer NOT NULL,
- datebirth date NOT NULL,
- email character varying(255) NOT NULL,
- enabled boolean DEFAULT true,
- gender character varying(255) NOT NULL,
- login character varying(255) NOT NULL,
- name character varying(255) NOT NULL,
- password character varying(255) NOT NULL,
- surname character varying(255) NOT NULL,
- role character varying(255) NOT NULL
-);
-
-
-ALTER TABLE public.users OWNER TO postgres;
-
---
--- TOC entry 197 (class 1259 OID 32806)
--- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
---
-
-CREATE SEQUENCE public.users_id_seq
- AS integer
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
-ALTER TABLE public.users_id_seq OWNER TO postgres;
-
---
--- TOC entry 2816 (class 0 OID 0)
--- Dependencies: 197
--- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
---
-
-ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
-
-
---
--- TOC entry 2675 (class 2604 OID 32811)
--- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
---
-
-ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
-
-
---
--- TOC entry 2805 (class 0 OID 24577)
--- Dependencies: 196
--- Data for Name: roles; Type: TABLE DATA; Schema: public; Owner: postgres
---
-
-COPY public.roles (name) FROM stdin;
-COMP
-IND
-\.
-
-
---
--- TOC entry 2807 (class 0 OID 32808)
--- Dependencies: 198
--- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres
---
-
-COPY public.users (id, datebirth, email, enabled, gender, login, name, password, surname, role) FROM stdin;
-1 1970-01-01 koko@spoko.com f 0 przyklad Przykład $2a$10$Bgau.SVIBvX5IxOCY.JBBOgJXvXRIEdRIkEhYPPNe/VIGdv51U1W. Przykładowe IND
-\.
-
-
---
--- TOC entry 2817 (class 0 OID 0)
--- Dependencies: 197
--- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
---
-
-SELECT pg_catalog.setval('public.users_id_seq', 1, true);
-
-
---
--- TOC entry 2678 (class 2606 OID 24581)
--- Name: roles roles_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
---
-
-ALTER TABLE ONLY public.roles
- ADD CONSTRAINT roles_pkey PRIMARY KEY (name);
-
-
---
--- TOC entry 2680 (class 2606 OID 32819)
--- Name: users uk_ow0gan20590jrb00upg3va2fn; Type: CONSTRAINT; Schema: public; Owner: postgres
---
-
-ALTER TABLE ONLY public.users
- ADD CONSTRAINT uk_ow0gan20590jrb00upg3va2fn UNIQUE (login);
-
-
---
--- TOC entry 2682 (class 2606 OID 32817)
--- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
---
-
-ALTER TABLE ONLY public.users
- ADD CONSTRAINT users_pkey PRIMARY KEY (id);
-
-
---
--- TOC entry 2683 (class 2606 OID 32820)
--- Name: users fk4c6vlshk8x83ifeoggi3exg3k; Type: FK CONSTRAINT; Schema: public; Owner: postgres
---
-
-ALTER TABLE ONLY public.users
- ADD CONSTRAINT fk4c6vlshk8x83ifeoggi3exg3k FOREIGN KEY (role) REFERENCES public.roles(name);
-
-
--- Completed on 2020-12-19 22:52:46
-
---
--- PostgreSQL database dump complete
---
-
diff --git a/backend/src/main/java/project/DTO/AlgorithmDTO.java b/backend/src/main/java/project/DTO/AlgorithmDTO.java
deleted file mode 100644
index f399c6b..0000000
--- a/backend/src/main/java/project/DTO/AlgorithmDTO.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-
-import javax.persistence.Column;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import java.io.Serializable;
-
-public class AlgorithmDTO implements Serializable {
-
- @Getter
- @Setter
- private int id;
-
- @Getter
- @Setter
- private String name;
-
- public AlgorithmDTO(){}
-}
diff --git a/backend/src/main/java/project/DTO/CompanyDataDTO.java b/backend/src/main/java/project/DTO/CompanyDataDTO.java
deleted file mode 100644
index 02097b1..0000000
--- a/backend/src/main/java/project/DTO/CompanyDataDTO.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-import project.model.CompanyData;
-
-import javax.persistence.*;
-import java.io.Serializable;
-
-
-public class CompanyDataDTO implements Serializable {
-
- @Getter
- @Setter
- private int id;
-
- @Getter
- @Setter
- private String name;
-
- @Getter
- @Setter
- private String email;
-
- @Getter
- @Setter
- private String address;
-
- @Getter
- @Setter
- private double longitude;
-
- @Getter
- @Setter
- private double latitude;
-
-
- public CompanyDataDTO(){};
-
- public CompanyDataDTO(String name, String email, String address, double longitude, double latitude) {
- this.name = name;
- this.email = email;
- this.address = address;
- this.longitude = longitude;
- this.latitude = latitude;
- }
-
- public CompanyDataDTO(CompanyData companyData){
- this.id = companyData.getId();
- this.name = companyData.getName();
- this.email = companyData.getEmail();
- this.address = companyData.getAddress();
- this.longitude = companyData.getLongitude();
- this.latitude = companyData.getLatitude();
- };
-}
diff --git a/backend/src/main/java/project/DTO/CompanyProfileDTO.java b/backend/src/main/java/project/DTO/CompanyProfileDTO.java
deleted file mode 100644
index 12565eb..0000000
--- a/backend/src/main/java/project/DTO/CompanyProfileDTO.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-import org.hibernate.annotations.Table;
-import project.model.User;
-
-import javax.persistence.*;
-import java.io.Serializable;
-
-
-public class CompanyProfileDTO implements Serializable {
- @Getter
- @Setter
- private int id;
-
- @Getter
- @Setter
- private CompanyDataDTO companyData;
-
-
- @Getter
- @Setter
- private UserDTO userDTO;
-
- public CompanyProfileDTO(){};
-
- public CompanyProfileDTO(CompanyDataDTO companyData, UserDTO userDTO) {
- this.companyData = companyData;
- this.userDTO = userDTO;
- }
-
- public CompanyProfileDTO(CompanyDataDTO companyData) {
- this.companyData = companyData;
- }
-}
diff --git a/backend/src/main/java/project/DTO/PersonalDataDTO.java b/backend/src/main/java/project/DTO/PersonalDataDTO.java
deleted file mode 100644
index de5608c..0000000
--- a/backend/src/main/java/project/DTO/PersonalDataDTO.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-import project.model.PersonalData;
-
-import javax.persistence.*;
-import java.io.Serializable;
-import java.util.Date;
-
-
-public class PersonalDataDTO implements Serializable {
-
- @Getter
- @Setter
- private int id;
-
- @Getter
- @Setter
- private String name;
-
- @Getter
- @Setter
- private String surname;
-
- @Getter
- @Setter
- private String email;
-
- @Getter
- @Setter
- private String gender;
-
- @Getter
- @Setter
- private Date datebirth;
-
- public PersonalDataDTO(){};
-
- public PersonalDataDTO(String name, String surname, String email, String gender, Date datebirth) {
- this.name = name;
- this.surname = surname;
- this.email = email;
- this.gender = gender;
- this.datebirth = datebirth;
- }
-
- public PersonalDataDTO(PersonalData personalData){
- this.name = personalData.getName();
- this.surname = personalData.getSurname();
- this.email = personalData.getEmail();
- this.gender = personalData.getGender();
- this.datebirth = personalData.getDatebirth();
- };
-}
diff --git a/backend/src/main/java/project/DTO/PersonalProfileDTO.java b/backend/src/main/java/project/DTO/PersonalProfileDTO.java
deleted file mode 100644
index 01dc818..0000000
--- a/backend/src/main/java/project/DTO/PersonalProfileDTO.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-import org.hibernate.annotations.Table;
-import project.model.User;
-
-import javax.persistence.*;
-import java.io.Serializable;
-
-
-public class PersonalProfileDTO implements Serializable {
-
- @Getter
- @Setter
- private int id;
-
- @Getter
- @Setter
- private PersonalDataDTO personalDataDTO;
-
- @Getter
- @Setter
- private UserDTO userDTO;
-
- public PersonalProfileDTO(){};
-
- public PersonalProfileDTO(PersonalDataDTO personalDataDTO, UserDTO userDTO) {
- this.personalDataDTO = personalDataDTO;
- this.userDTO = userDTO;
- }
-
- public PersonalProfileDTO(PersonalDataDTO personalDataDTO) {
- this.personalDataDTO = personalDataDTO;
- }
-}
diff --git a/backend/src/main/java/project/DTO/PredictionDTO.java b/backend/src/main/java/project/DTO/PredictionDTO.java
deleted file mode 100644
index 901f37f..0000000
--- a/backend/src/main/java/project/DTO/PredictionDTO.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package project.DTO;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import lombok.Getter;
-import lombok.Setter;
-import project.model.ParameterDouble;
-import project.model.ParameterInt;
-import project.model.Prediction;
-import project.model.User;
-
-import javax.persistence.*;
-import java.io.Serializable;
-import java.time.LocalDateTime;
-import java.util.List;
-
-public class PredictionDTO implements Serializable {
-
- @Getter
- @Setter
- private int id;
-
- @Getter
- @Setter
- private String name;
-
- @Getter
- @Setter
- private int user;
-
- @Getter
- @Setter
- private int creator;
-
- @Getter
- @Setter
- private List parameterDoubles;
-
- @Getter
- @Setter
- private List parameterInts;
-
- @Getter
- @Setter
- private double resultValue;
-
- @Getter
- @Setter
- private String resultText;
-
-
- @Getter
- @Setter
- private LocalDateTime localDateTime;
-
- public PredictionDTO(){};
-
- public PredictionDTO(PredictionDTO predictionDTO){
- this.id = predictionDTO.getId();
- this.name = predictionDTO.getName();
- this.user = predictionDTO.getUser();
- this.creator = predictionDTO.getCreator();
- this.parameterDoubles = predictionDTO.getParameterDoubles();
- this.parameterInts = predictionDTO.getParameterInts();
- this.resultValue = predictionDTO.getResultValue();
- this.resultText = predictionDTO.getResultText();
- this.localDateTime = predictionDTO.getLocalDateTime();
-
-
- }
-
- public PredictionDTO(Prediction prediction){
- this.id = prediction.getId();
- this.name = prediction.getName();
- this.user = prediction.getUser().getId();
- this.creator = prediction.getCreator().getId();
- this.parameterDoubles = prediction.getParameterDoubles();
- this.parameterInts = prediction.getParameterInts();
- this.resultValue = prediction.getResultValue();
- this.resultText = prediction.getResultText();
- this.localDateTime = prediction.getLocalDateTime();
-
-
- }
-
-}
diff --git a/backend/src/main/java/project/DTO/RoleDTO.java b/backend/src/main/java/project/DTO/RoleDTO.java
deleted file mode 100644
index 31f853a..0000000
--- a/backend/src/main/java/project/DTO/RoleDTO.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-
-import java.io.Serializable;
-
-public class RoleDTO implements Serializable {
-
- @Getter
- @Setter
- private String name;
-
- public RoleDTO(){
-
- }
-
- public RoleDTO(String name){
- this.name=name;
-
- }
-}
diff --git a/backend/src/main/java/project/DTO/UserDTO.java b/backend/src/main/java/project/DTO/UserDTO.java
deleted file mode 100644
index 5820ce0..0000000
--- a/backend/src/main/java/project/DTO/UserDTO.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package project.DTO;
-
-import lombok.Getter;
-import lombok.Setter;
-import project.model.User;
-
-import java.io.Serializable;
-import java.util.Date;
-
-
-public class UserDTO implements Serializable {
-
-
- @Getter
- @Setter
- private int id;
-
-
- @Getter
- @Setter
- private String login;
-
- @Getter
- @Setter
- private String password;
-
- @Getter
- @Setter
- private RoleDTO roleDTO;
-
-
- public UserDTO(){
-
- }
-
- public UserDTO(String login, String password) {
- this.login = login;
- this.password = password;
- }
-
- public UserDTO(UserDTO userDTO) {
-
- this.login = userDTO.getLogin();
- this.password = userDTO.getPassword();
- this.roleDTO= userDTO.getRoleDTO();
- }
-
- public UserDTO(User user) {
-
- this.id = user.getId();
- this.login = user.getLogin();
- this.roleDTO= new RoleDTO(user.getRole().getName());
-
- }
-
-
-
-
-
-}
diff --git a/backend/src/main/java/project/TakeCareApp.java b/backend/src/main/java/project/TakeCareApp.java
deleted file mode 100644
index 62e5b23..0000000
--- a/backend/src/main/java/project/TakeCareApp.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package project;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.builder.SpringApplicationBuilder;
-import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
-import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
-import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
-import org.springframework.security.crypto.password.PasswordEncoder;
-
-@SpringBootApplication
-@EnableJpaRepositories("project.repositories")
-
-public class TakeCareApp {
- public static void main(String[] args){
- SpringApplication.run(TakeCareApp.class,args);
-
-
- }
-
-
-
-}
diff --git a/backend/src/main/java/project/config/JwtAuthenticationEntryPoint.java b/backend/src/main/java/project/config/JwtAuthenticationEntryPoint.java
deleted file mode 100644
index 492a49a..0000000
--- a/backend/src/main/java/project/config/JwtAuthenticationEntryPoint.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package project.config;
-
-import org.springframework.security.core.AuthenticationException;
-import org.springframework.security.web.AuthenticationEntryPoint;
-import org.springframework.security.web.DefaultRedirectStrategy;
-import org.springframework.stereotype.Component;
-
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-
-@Component
-public class JwtAuthenticationEntryPoint implements AuthenticationEntryPoint {
-
-
- @Override
- public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException{
- httpServletResponse.setContentType("application/json");
- new DefaultRedirectStrategy().sendRedirect(httpServletRequest,httpServletResponse,"/api/login");
- }
-}
diff --git a/backend/src/main/java/project/config/JwtAuthenticationFilter.java b/backend/src/main/java/project/config/JwtAuthenticationFilter.java
deleted file mode 100644
index c6faf6b..0000000
--- a/backend/src/main/java/project/config/JwtAuthenticationFilter.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package project.config;
-
-import io.jsonwebtoken.ExpiredJwtException;
-import io.jsonwebtoken.SignatureException;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
-import org.springframework.security.core.context.SecurityContextHolder;
-import org.springframework.security.core.userdetails.UserDetails;
-import org.springframework.stereotype.Component;
-import org.springframework.web.filter.OncePerRequestFilter;
-import project.services.UserServiceImpl;
-import javax.servlet.FilterChain;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-
-
-import static project.config.SecurityConfiguration.TOKEN_HEADER;
-import static project.config.SecurityConfiguration.TOKEN_SCHEME;
-
-@Component
-public class JwtAuthenticationFilter extends OncePerRequestFilter {
-
- @Autowired
- private UserServiceImpl userDetailsService;
-
- @Autowired
- private TokenHelper tokenHelper;
-
- @Override
- protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws IOException, ServletException {
-
- HttpServletRequest request = httpServletRequest;
- HttpServletResponse response = httpServletResponse;
-
- String header = httpServletRequest.getHeader(TOKEN_HEADER);
- String name = null;
- String tokenAuth = null;
-
- if(header!=null && header.startsWith(TOKEN_SCHEME)){
- tokenAuth = header.replace(TOKEN_SCHEME,"");
- try{
- name = tokenHelper.getUsernameFromToken(tokenAuth);
- } catch (IllegalArgumentException e) {
- request.setAttribute("token","token is invalid");
- logger.error("an error occured during getting username from token", e);
- } catch (ExpiredJwtException e) {
- request.setAttribute("token","token is expired");
- logger.warn("the token is expired and not valid anymore", e);
- } catch(SignatureException e){
- request.setAttribute("token","token is invalid");
- logger.error("Authentication Failed. Username or Password not valid.");
- }
-
- }else{
- logger.warn("Couldn't find Bearer String");
- }
- if(name != null && SecurityContextHolder.getContext().getAuthentication()==null){
-
- UserDetails userDetails = userDetailsService.loadUserByUsername(name);
-
- if(this.tokenHelper.validateToken(tokenAuth,userDetails)){
- UsernamePasswordAuthenticationToken auth = new UsernamePasswordAuthenticationToken(userDetails,SecurityContextHolder.getContext().getAuthentication(),userDetails.getAuthorities());
- String token = this.tokenHelper.refreshToken(tokenAuth);
-
- request.setAttribute("token",token);
-
- SecurityContextHolder.getContext().setAuthentication(auth);
- logger.info("Authenticated user "+name);
-
- }
- }
-
-
- filterChain.doFilter(request,response);
-
- }
-}
diff --git a/backend/src/main/java/project/config/SecurityConfiguration.java b/backend/src/main/java/project/config/SecurityConfiguration.java
deleted file mode 100644
index 4232f69..0000000
--- a/backend/src/main/java/project/config/SecurityConfiguration.java
+++ /dev/null
@@ -1,116 +0,0 @@
-package project.config;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.PropertySource;
-import org.springframework.http.HttpMethod;
-import org.springframework.security.authentication.AuthenticationManager;
-import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
-import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
-import org.springframework.security.config.annotation.web.builders.HttpSecurity;
-import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
-import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
-import org.springframework.security.config.http.SessionCreationPolicy;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
-import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
-import org.springframework.web.cors.CorsConfiguration;
-import org.springframework.web.cors.CorsConfigurationSource;
-import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
-import project.services.UserServiceImpl;
-
-import java.util.Arrays;
-
-@EnableGlobalMethodSecurity(prePostEnabled = true)
-@EnableWebSecurity
-@Configuration
-@EnableConfigurationProperties
-@PropertySource("classpath:remote.properties")
-public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
-
- @Autowired
- private UserServiceImpl userDetailsService;
-
- @Bean
- public BCryptPasswordEncoder passwordEncoder() {
- BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();
- return bCryptPasswordEncoder;
- }
-
- @Bean
- @Override
- public AuthenticationManager authenticationManagerBean() throws Exception {
- return super.authenticationManagerBean();
- }
-
- @Override
- public void configure(AuthenticationManagerBuilder authManBuild) throws Exception{
- authManBuild
- .userDetailsService(userDetailsService)
- .passwordEncoder(passwordEncoder());
- }
-
- @Override
- protected void configure(HttpSecurity http) throws Exception {
-
-
- http.cors().and().csrf().disable()
- .authorizeRequests()
- .antMatchers("/profile**").hasAnyAuthority("COMP","IND")
- .antMatchers("/login").anonymous()
- .antMatchers("/register").anonymous()
- .antMatchers("/firms/all").anonymous()
- .and()
- .formLogin()
- .loginPage("/login")
- .and()
- .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
- http.addFilterBefore(jwtAuthenticationFilter(),UsernamePasswordAuthenticationFilter.class);
-
- }
-
-
- public static final String TOKEN_HEADER = "Authorization";
- public static final String TOKEN_SCHEME = "Bearer ";
- public static final String TOKEN_KEY = "TakeCareApp";
- public static final long TOKEN_VALIDITY = 30*60;
-
-
-
-
- @Autowired
- private JwtAuthenticationEntryPoint unauthHandler;
-
- @Bean
- public JwtAuthenticationFilter jwtAuthenticationFilter(){
-
- return new JwtAuthenticationFilter();
- }
-
- @Bean
- public CorsConfigurationSource corsConfigurationSource() {
- CorsConfiguration configuration = new CorsConfiguration();
- configuration.setAllowedOrigins(Arrays.asList("*"));
- configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
- configuration.setAllowedHeaders(Arrays.asList("authorization", "content-type", "x-auth-token"));
- configuration.setExposedHeaders(Arrays.asList("x-auth-token"));
- UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
- source.registerCorsConfiguration("/api/**", configuration);
- return source;
- }
-
-
- @Autowired
- private AuthenticationManager authenticationManager;
-
-
-
-
-
-
-
-
-
-
-}
diff --git a/backend/src/main/java/project/config/TokenHelper.java b/backend/src/main/java/project/config/TokenHelper.java
deleted file mode 100644
index 0da869f..0000000
--- a/backend/src/main/java/project/config/TokenHelper.java
+++ /dev/null
@@ -1,106 +0,0 @@
-package project.config;
-
-import io.jsonwebtoken.Claims;
-import io.jsonwebtoken.Jwts;
-import io.jsonwebtoken.SignatureAlgorithm;
-import org.springframework.security.core.userdetails.UserDetails;
-import org.springframework.stereotype.Component;
-
-import project.model.User;
-
-import java.io.Serializable;
-import java.util.*;
-
-import static project.config.SecurityConfiguration.TOKEN_KEY;
-import static project.config.SecurityConfiguration.TOKEN_VALIDITY;
-
-@Component
-public class TokenHelper implements Serializable {
-
-
- //Generate Token with userID,role,name
-
- public String generateToken(User user) {
- Claims claims = Jwts.claims().setSubject(user.getLogin());
- claims.put("userId",user.getId());
- claims.put("role",user.getRole().getName());
-
- return Jwts.builder()
- .setClaims(claims)
- .setIssuer("http://localhost:8080")
- .setIssuedAt(new Date(System.currentTimeMillis()))
- .setExpiration(new Date(System.currentTimeMillis()+TOKEN_VALIDITY*1000))
- .signWith(SignatureAlgorithm.HS256,TOKEN_KEY)
- .compact();
- }
-
- public String refreshToken(String token){
- Claims claims = getAllClaimsFromToken(token);
- return Jwts.builder()
- .setClaims(claims)
- .setIssuer("http://localhost:8080")
- .setIssuedAt(new Date(System.currentTimeMillis()))
- .setExpiration(new Date(System.currentTimeMillis()+TOKEN_VALIDITY*1000))
- .signWith(SignatureAlgorithm.HS256,TOKEN_KEY)
- .compact();
-
- }
-
- public Claims getAllClaimsFromToken(String token){
-
- return Jwts.parser()
- .setSigningKey(TOKEN_KEY)
- .parseClaimsJws(token)
- .getBody();
- }
-
-
-
- public String getUsernameFromToken(String token){
-
- Claims claims = getAllClaimsFromToken(token);
- return claims.getSubject();
- }
-
- public String getAuthoritiesFromToken(String token){
- Claims claims = getAllClaimsFromToken(token);
- String auth = (String)claims.get("role");
- return auth;
- }
-
- public boolean validateToken(String token,UserDetails userDetails){
- String userName = getUsernameFromToken(token);
- String tokenAuth = getAuthoritiesFromToken(token);
- String userDetailsAuth = userDetails.getAuthorities()
- .stream()
- .findFirst()
- .get()
- .getAuthority();
-
- if(userName.contentEquals(userDetails.getUsername())
- && !isTokenExpired(token)
- && tokenAuth.contentEquals(userDetailsAuth)){
- return true;
- }
- else{
- return false;
- }
- }
-
- private Date getExpirationDate(String token) {
-
- Claims claims = getAllClaimsFromToken(token);
- return claims.getExpiration();
- }
-
- public boolean isTokenExpired(String token){
- Date currentTime = new Date(System.currentTimeMillis());
- Date tokenTime = getExpirationDate(token);
- if(currentTime.after(tokenTime)){
- return true;
- }
- else return false;
- }
-
-
-}
diff --git a/backend/src/main/java/project/controllers/AuthenticationController.java b/backend/src/main/java/project/controllers/AuthenticationController.java
deleted file mode 100644
index 3c745f6..0000000
--- a/backend/src/main/java/project/controllers/AuthenticationController.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package project.controllers;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.MediaType;
-import org.springframework.http.ResponseEntity;
-import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.security.authentication.AuthenticationManager;
-import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
-import org.springframework.security.core.Authentication;
-import org.springframework.security.core.context.SecurityContextHolder;
-import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
-import org.springframework.web.bind.annotation.*;
-import project.DTO.UserDTO;
-import project.config.TokenHelper;
-
-import project.model.CompanyProfile;
-import project.model.PersonalProfile;
-import project.model.User;
-import project.services.CompanyProfileService;
-import project.services.PersonalProfileService;
-import project.services.UserService;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Optional;
-
-@CrossOrigin(origins = "http://localhost:4200")
-@RestController
-@RequestMapping("/api")
-public class AuthenticationController {
-
- @Autowired
- private AuthenticationManager authenticationManager;
-
- @Autowired
- TokenHelper tokenHelper;
-
- @Autowired
- UserService userService;
-
- @Autowired
- PersonalProfileService personalProfileService;
-
- @Autowired
- CompanyProfileService companyProfileService;
-
- @Autowired
- private BCryptPasswordEncoder bCryptPasswordEncoder;
-
- @PreAuthorize("isAnonymous()")
- @RequestMapping(value = "/login",method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_VALUE)
- @ResponseBody
- public ResponseEntity