store-checkout-client
Back-End client checkout store with Java, Spring Boot, Spring Security, JWT and Swagger
-
For testing and view the code in the project I recommend using the IntelliJ IDE (free Community or Ultimate edition)
-
How to run :
Install maven
In terminal execute:
mvn spring-boot:run
-
For testing navigate to:
-
For test is better uses Postman because the endpoints are secure:
To authenticate with JWT uses any username and password:
http://localhost:8081/client/users {POST}
Uses token:
http://localhost:8081/client/baskets {POST}
http://localhost:8081/client/baskets/amounts/1 {GET}
-
TODO
Saves username and password in database to authenticate the user
Add Product Controller with endpoint for save new products codes in database
-
Notes
The logic of the app is in the service project
Client calls to service with RestTemplate
Client and service uses one application.properties for simplicity but it is possible use one for each environment (application-local.properties, application-test.properties, application-production.properties)