Project for the course 'Softwaredevelopment' at OTH Regensburg.
If you want to use the api, please refer to the section API documentation. The notes of the owner of the repository are stored in the section Notes. In case you are here for testing the software, please refer to the section Testing. All information you need can be found there.
- Find customer :
GET /api/customers
- Get account value :
GET /api/banking/accounts
- Transfer money :
POST /api/banking/transfers/transfer
- Mandate money :
POST /api/banking/transfers/mandate
NOTE: In case of starting the application, please take care of the notes in the section Commands for the deployment, especially for the command to export the environment variables!
Username | Password |
---|---|
max | admin |
thomas | admin |
NOTE: The registration of new employee accounts was not part of the defined requirements.
To assign an employee to a new customer, the employee with the fewest amount of customers is assigned to the new customer.
The EmployeeService and its interface was added after the requirements of milestone one.
Also, the interface for the associate project is a specific one, because of other internal needed methods in the BankingServiceIF. So the decision was made to have an extra interface for external needs. Please keep in mind, that the BankingServiceIF implements the methods of the BankingServiceExternalIF.
The prerequisite for this is the use of vpn access. The password is always the "NDS-Account-Id".
The prerequisite for this is the use of vpn access. The password is always the "NDS-Account-Id".
- Run
Generate JAR
in IDE - Copy JAR:
scp C:\Workspace\sw_project\target\bank-1.0.0.jar sw_stefan_bauer@im-codd:
- Connect to server:
ssh sw_stefan_bauer@im-codd
- In case of changed environment variables:
export $(cat .env | xargs)
- Check copied file:
ls -l
- Start as daemon process:
java -jar bank-1.0.0.jar > server.log 2> error.log &
- Show running processes:
ps -f
- Kill process:
- In case you know the PID:
kill <PID>
- The mor common case:
- Get PID:
netstat -an --tcp --program
- Then kill it.
- Get PID:
- In case you know the PID:
- Exit Secure Shell:
exit
NOTE: Has to be executed in the folder
target/classes
jar cf banking_lib.jar de/othr/sw/bank/entity/TransferRequest.class de/othr/sw/bank/service/BankingServiceExternalIF.class de/othr/sw/bank/service/AccountNotFoundException.class de/othr/sw/bank/service/InvalidTransferException.class de/othr/sw/bank/service/NotEnoughMoneyException.class de/othr/sw/bank/utils/DateUtils.class de/othr/sw/bank/utils/StringUtils.class
Spring: Guides
Spring: JPA
Baeldung: Spring Guides
Spring and Thymeleaf