AtmosFears backend repository
- Java 17
- Maven
- R (with additional libraries)
- Download Maven 3.9.1 by clicking this link
- Unpack to
C:\Program Files\Maven\
- Add Maven to Path in your system variables. (if you unpack properly it should be
C:\Program Files\Maven\apache-maven-3.9.1\bin
) - Make sure, you have JAVA_HOME (Java 17) in your System variables. Example path:
C:\Users\<user>\.jdks\corretto-17.0.4.1
- Now you should be able to run
mvn --version
in your terminal
Just run sudo apt install maven
, and make sure your java version is 17.
If you want the newest version of maven check this
- Create a copy of
db.example.properties
asdb.properties
- Fill credentials
Running app (it also recompile your changes):
mvn spring-boot:run
Build app from scratch:
mvn clean install
To be able to use the prediction model in this project you need to have R environment set up.
First, you need to download and install the R itself. You can do that via this link: https://cloud.r-project.org/
Then you need to download and install couple additional packages:
- https://cran.r-project.org/web/packages/Cubist/index.html
- https://cran.r-project.org/web/packages/reshape2/index.html
- https://cran.r-project.org/web/packages/plyr/index.html
- https://cran.r-project.org/web/packages/rules/index.html
- https://cran.r-project.org/web/packages/rio/index.html
- https://cran.r-project.org/web/packages/zip/
- https://cran.r-project.org/web/packages/openxlsx/
Depending on the platform you use you need to do it slightly differently, but it pretty much comes down to placing the downloaded decompressed file into the library director of R. For the server, there will a script auto installing this lovely mess (not implemented yet).