Skip to content

jekka001/Alanton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alantonRouteMap

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:

  1. Add to WebSecurity to method filterChain - .requestMatchers(HttpMethod.POST, SLASH + API + MANAGER + CREATE_URL).permitAll()
  2. To start application.
  3. Go to postman and import postmanCollection - Alanton.postman_collection.json
  4. Go to managerController folder and send createFirstUser
  5. To stop application.
  6. 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:

  1. Go to Postman in tokenController folder to use method login
  2. 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

  1. commit in cumulative file - '<'include file="5-replace-snapshot-0.0.1.xml" relativeToChangelogFile="true"'/>'
  2. uncommit in cumulative file - '<'!-- '<'include file="3-test-data.xml" relativeToChangelogFile="true"'/>'--'>'
  3. change name Worker fields from seeDefect and seeReady to useDefect and useReady (check WorkerServiceImpl)
  4. add to User field - @Column(length = 300)private String hash;
  5. add to UserDto field - private String hash;
  6. add to UserDetailsServiceImpl to method create - user.setHash(userDto.getHash());
  7. add to WebSecurity to method filterChain - .requestMatchers(HttpMethod.POST, SLASH + API + MANAGER + CREATE_URL).permitAll()
  8. to start application.
  9. go to postman and import postmanCollection - Alanton.postman_collection.json
  10. go to managerController folder and send createFirstUser - login only User76
  11. to stop application.
  12. remove 3-7 operation.
  13. uncommit 1-change-password in file 5-replace-snapshot-0.0.1.xml.
  14. uncommit in cumulative file - '<'!-- '<'include file="5-replace-snapshot-0.0.1.xml" relativeToChangelogFile="true"'/>'--'>'
  15. 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

About

commercial project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages