Coder Social home page Coder Social logo

backend's Introduction

before everything, please execute following commands to install node_modules which is too big to share a. cd frontend b. npm install

  1. 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

  2. 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.

  3. run spring boot backend, execute following command: a. cd backend b. mvn clean install spring-boot:run -DskipTests -Dflyway.outOfOrder=true flyway:migrate

  4. run angular frontend, execute following command: a. cd frontend b. ng serve

  5. After both backend and frontend startup without error, open "http://localhost:4200" in browser

  6. After login, can click logout link in left corner of the page to switch user to login

  7. 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.

  8. 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

  9. log will output to 1. console and 2. ./backend/backend.log

  10. 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

  11. Sorry no time to clean lots of comment or useless code most from my personal project.

  12. Thanks everyone.

backend's People

Contributors

incredibleliu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.