Loan management system is a system to manage online loan request. It consist of two applications: loan-request and loan-admin
Loan request is an online request form for making information, photo or loan requests of specimens from collections of Swedish Natural History of Museum.
Loan admin is for loan manager to handle the requests.
Solr: 4.10.2 Collections data need to be index in solr
Mongodb 4.2.1 loans
mysql 5.7.22 userdb
wildfly 8.2 Config datasource to connect to mysql userdb
Download this source code. cd to directory: loan-management
- cd mongo
- run: docker-compose up -d
- run: docker-compose ps (To make sure mongo express is up)
- open mongo express: http://localhost:8081/
- loans database should be imported
-
cd wildfly
-
To build wildfly image with preconfiguration, run:
- make build
- docker-compose up -d
-
To upload userdb into mysql:
- copy file from local to docker container:
- docker cp data/userdb.sql mysql:/userdb.sql
- docker exec -it mysql bash
- inside mysql docker container:
- mysql -u root -p userdb < userdb.sql
- password: admin
-
To access wildfly admin console:
- Run: http://localhost:9990
- username: admin
- password: dina
-
run: mvn clean package
-
For deployment:
-
cd dina-loan-admin/target
-
deploy loan-admin.war into wildfly
-
cd dina-loan-web/target
-
deploy loan.war into wildfly
-
Loan request form:
-
Loan admin:
Access loan-admin with: username: admin password: admin