src/main/kotlin/com.coded.spring.ordering is where all the packages are
dtos ←→ controller → service → repository → entity
controller = entry point for http requests (receive requests, process data, determine response)
GET: retrieve data from a serverPOST: send data to the server to create a new resourcePUT: update or replace an existing resourceDELETE: remove a resource from the server
service = business logic (processes data, makes decisions, eg: save order)
repository = database operations (handles communication with db: save, find, delete)
entity = domain model (defines what your data is in the system: fields, relationships)
dto = data transfer object (cleans request/response json bodies, to avoid returning entities)
- welcome page
- list all orders
- create new order
- exercise 1: welcome
- bonus: checked with
curlcommand
- bonus: checked with
- exercise 2: endpoint to
POSTorder- bonus: add
createdAtcolumn and sort
- bonus: add
- exercise 3: create + connect db
- bonus: create
itemstable and connect it toorders
- bonus: create
- exercise 4: user authentication
- bonus: password validation so people can't create a weak password
- exercise 5: user profiles
- bonus:
- exercise 6: unit testing
- bonus:
- exercise 7: menu endpoint
- bonus:
- exercise 8: configuration
- bonus:
- exercise 9: setup swagger
- bonus:
- exercise 10: refactor to micro services
- bonus: