before everything, please execute following commands to install node_modules which is too big to share a. cd frontend b. npm install
-
only 2 user can login which is name:john/password:nhoj/role:admin and name:tom/password:mot/role:user tom/john both in small case
-
Because data file "account_number.csv" inside project, please run backend project in folder mode, not in war file mode. Or the file won't be modified by program.
-
run spring boot backend, execute following command: a. cd backend b. mvn clean install spring-boot:run -DskipTests -Dflyway.outOfOrder=true flyway:migrate
-
run angular frontend, execute following command: a. cd frontend b. ng serve
-
After both backend and frontend startup without error, open "http://localhost:4200" in browser
-
After login, can click logout link in left corner of the page to switch user to login
-
first login with tom/tom, the account_number are read from relative path .\backend\src\main\resources\db\migration\account_number.csv tom can remove any account_number he'd like, but "remove" button won't submit to backend, tom can add any account_number he'd like, but "add" button won't submit to backend, then can click "Submit Accounts to Pending Requests" to submit for approval in batch mode. Before or after submit, Tom can click 'List Pending Request' to see only pending requests. Tom can cancel pending request.
-
second login with john/nhoj, will bring john directly to "all requests" page which list user requests in any status, john can approve/reject request, when approve request, the account_number will be deleted from .\backend\src\main\resources\db\migration\account_number.csv, and at the same time the account_number will be inserted into table exclusion_account
-
log will output to 1. console and 2. ./backend/backend.log
-
h2 run in file mode, file is ./backend/db1.mv.db, if you'd like to run in fresh data, please stop backend spring boot, delete ./backend/db1.mv.db and restart backend
-
Sorry no time to clean lots of comment or useless code most from my personal project.
-
Thanks everyone.