A http API session management.
Practical use case: A ecommerce site
- Add session expiration feature (Paused; first, we need a real service layer)
- Update basket feature
- Add Pagination for all API endpoints (We can't display large data sets in only one request)
- Production and Development environments built in Docker/Docker compose (We want to implement a real datastore based in PostgreSQL, using Docker)
- Add Slick support in service layer (We want to remove mockups objects and implement real services)
- Add Tests (Could be changed in a future)
- Add logout feature
- Add login feature
- Private endpoints available only for authenticated users
- Retrieve basket feature
- Play Framework
- SBT
POST /login
GET /logout
GET /index/"user_name"
GET /basket/"user_name"
GET /home
tested using java 8
sbt run
And then go to http://localhost:9000 to see the running web application.