ALANTON Route Map for production of carbon parts
Class for start spring boot - ProductionApplication Local application work on url - localhost:8080
(Before the next steps you need download docker) Create and start docker containers: use command in terminal(from project path) - "docker-compose up"
After this steps was created and started two container:
- spring(localhost:8080)
- postgres(jdbc:postgresql://localhost:5432/)
INSTRUCTION FOR FIRST START:
- Add to WebSecurity to method filterChain - .requestMatchers(HttpMethod.POST, SLASH + API + MANAGER + CREATE_URL).permitAll()
- To start application.
- Go to postman and import postmanCollection - Alanton.postman_collection.json
- Go to managerController folder and send createFirstUser
- To stop application.
- Remove from WebSecurity to method filterChain - .requestMatchers(HttpMethod.POST, SLASH + API + MANAGER + CREATE_URL).permitAll()
Now you have user for login and get token that can helped to send request.
FIRST REQUEST:
- Go to Postman in tokenController folder to use method login
- Get token value and next to use this token in all method. (Bearer Token)
MIGRATE INSTRUCTION TO NEW VERSION - 0.0.1 FROM - 0.0.1-SNAPSHOT
- commit in cumulative file - '<'include file="5-replace-snapshot-0.0.1.xml" relativeToChangelogFile="true"'/>'
- uncommit in cumulative file - '<'!-- '<'include file="3-test-data.xml" relativeToChangelogFile="true"'/>'--'>'
- change name Worker fields from seeDefect and seeReady to useDefect and useReady (check WorkerServiceImpl)
- add to User field - @Column(length = 300)private String hash;
- add to UserDto field - private String hash;
- add to UserDetailsServiceImpl to method create - user.setHash(userDto.getHash());
- add to WebSecurity to method filterChain - .requestMatchers(HttpMethod.POST, SLASH + API + MANAGER + CREATE_URL).permitAll()
- to start application.
- go to postman and import postmanCollection - Alanton.postman_collection.json
- go to managerController folder and send createFirstUser - login only User76
- to stop application.
- remove 3-7 operation.
- uncommit 1-change-password in file 5-replace-snapshot-0.0.1.xml.
- uncommit in cumulative file - '<'!-- '<'include file="5-replace-snapshot-0.0.1.xml" relativeToChangelogFile="true"'/>'--'>'
- to start application (Now all user will be with password 1. and new security. without hash)
FRONTEND CHANGES TO NEW VERSION - 0.0.1 FROM - 0.0.1-SNAPSHOT
Transfer: api/detail/addDetail -> api/order/addDetail api/order/printDetailBarcode -> api/detail/printBarcode api/order/printOrderDetailsBarcode -> api/order/printBarcodes api/order/printCell -> api/cell/printBarcode api/order/addDetail -> api/order/update api/order/save -> api/order/update api/worker/printWorker -> api/worker/printBarcode api/analytics -> api/analytics/all api/directory/contextSearch -> api/directory/all api/directory/all/select -> api/directory/all api/directory/all - changed api/order/all -> changed pageNumber to INT all api/detailDirectory -> api/directory
api/directory -> removed token. api/directory/all -> removed token.
OrderResponse details -> detailsWithInfo
/api/directory/all -> change to DirectorySearchParameters. /api/manager some methods move to TOKEN Controller.
DirectoryDto directoryCount deleted.
Stage changed active to alwaysActive Worker changed useDefect to seeDefect Worker changed useReady to seeReady