A web based automatic ultrasound cancer diagnosis system
- install JAVA 8.0 +
- install Maven latest
- install Nodejs 10.15.0 +
- install npm 6.5.0 +
- install MATLAB runtime R2018b (9.5)
- install PostgreSQL 9.5.3 +
- Add /lib/Image_Recognition.jar (core cancer diagnosis library, built by MATLAB)
- under frontend folder
- npm run serve --prefix frontend
- under backend folder
- mvn spring-boot:run
- start http://localhost:3000/
- install JAVA 8.0 +
- install MATLAB runtime R2018b (9.5)
- install PostgreSQL 9.5.3 +
- under backend folder
- mvn validate
- under application root folder
- mvn package //create release package
- execute table.sql and data.sql on PostgreSQL
- java -jar backend\target\com.tend.acd.backend-1.0.3-SNAPSHOT.jar
- start http://localhost:8080/
- java -jar backend\target\com.tend.acd.backend-1.0.3-SNAPSHOT.jar --spring.profiles.active=demo
- download nssm from https://nssm.cc
- create start.bat file with following command
java -jar backend\target\com.tend.acd.backend-1.0.3-SNAPSHOT.jar --spring.profiles.active=demo
- run "nssm install tend-d-acd" and popup a nssm configuration window.
- select that "start.bat" on application path on application tab
- select "service.output.log" file on Output(stdout) I/O tab (optional,create file if not exists)
- select "service.error.log" file on Error(stderr) I/O tab (optional,create file if not exists)
- click "install service" button.
- start "tend-d-acd" service on windows service manager
- wait 1 min and start http://localhost:8080/
https://www.mathworks.com/help/compiler/mcr-path-settings-for-run-time-deployment.html
- Windows
set PATH=C:\Program Files\MATLAB\MATLAB Runtime\v96\runtime\win64;%PATH
- Linux
export LD_LIBRARY_PATH=/opt/mcr/v96/runtime/glnxa64/:/opt/mcr/v96/bin/glnxa64/:/opt/mcr/v96/sys/os/glnxa64/:/opt/mcr/v96/sys/opengl/lib/glnxa64/
java -jar com.tend.acd.backend-1.0.3-SNAPSHOT.jar --postgreSQL.connection=jdbc:postgresql://127.0.0.1:5432/tend?user=<user>&password=<password>
SET tend.postgreSQL.host=192.168.201.110 SET tend.postgreSQL.port=5432 java -jar com.tend.acd.backend-1.0.3-SNAPSHOT.jar --spring.profiles.active=env
- The tend docker image is private, contact me if you want to use it
- copy all file under docker to your computer, under tend folder
- install docker and docker-compose
- make sure no app token 80 port, or update docker-compose.yml accordingly
- go to tend folder
- run "docker-compose up -d" to start app
- run "docker-compose down" to stop app