1- Make Sure you're in "Backend" directory
2- Run sudo docker-compose up --force-recreate
Run all Scripts in ./db/SQL in pgAdmin or posgreSQL shell
1- Run Main Method in ArnagoInstance file
- In a new terminal shell, sudo gedit /etc/haproxy/haproxy.cfg, this will open a text editor
- In text editor, Replace the content of the opened file with the content of "/resources/haproxy.cfg" , then save and close the text editor
- If encountered 404 error when using
yay
run these two commandssudo pacman -Syy
andsudo pacman -Syu
- Run startup bash file in /Backend and mediaServerStartup in /Backend (If first time run bash minioDownload)
- Run the redis startup file in /Backend (you may need to type yes in the terminal if this is the first time).
- In terminal, run "mvn install:install-file -Dfile=/home/vm/Desktop/commons-dbcp2-2.8.0-bin/commons-dbcp2-2.8.0/commons-dbcp2-2.8.0.jar -DgroupId=org.apache.commons -DartifactId=commons-dbcp2 -Dversion=2.8.0 -Dpackaging=jar"
- In IntelliJ, load the maven dependencies from pom.xml (By Building the project) (Go To File -> Settings -> Build ... -> Build Tools -> Maven -> Check three boxes next to automatically download )
- 7- In Intellij , got to File -> Invalidate Caches -> Invalidate Cache and Restart
- Run "RunBackEnd.java".
To Run Arangodb web interface go to http://localhost:8529 after running bash script (Username: root, password is empty)
For Postgresql run pgadmin username is postgres and password is vm, hostname is localhost
Sample Request:
POST http://127.0.0.1:90
{
"command" : "SignIn",
"application" : "User"
}
Sample Controller Request:
POST http://127.0.0.1:8084
{
"command" : "freeze",
"application" : "User",
"param": "",
"path":"" ,
"instance_num":"1"
}