How krishnatvc/travel-insurance works
This is a training demo for submitting travel-insurance claims. A customer moves through four browser steps, submits a claim, and receives a reference; the backend validates and saves it to MySQL. The README documents the UI, API, persistence, retry behavior, informational dialogs, and health check. Source excerpts were not provided, so relationships below rely on README statements; implementation details beyond those statements are omitted.
Main entry points: App.java Claims API · index.html Submit claim · schema.sql Claims schema
Components 10
Claim journey
- Customer information
src/main/resources/static/index.html - Claim information
src/main/resources/static/index.html - Review claim
src/main/resources/static/index.html - Submit claim
src/main/resources/static/index.html - Information dialogs
src/main/resources/static/index.html
Application service
- Claims API
src/main/java/com/example/travel/App.java - Health endpoint
src/main/java/com/example/travel/App.java
Claim storage
- Claims schema
src/main/resources/schema.sql - MySQL database
Other components
- Customer
Connections 9
- Customer → Customer information: enters booking
README.md - Customer information → Claim information: continues to
README.md - Claim information → Review claim: reviews details
README.md - Review claim → Submit claim: confirms declaration
README.md - Submit claim → Claims API: posts claim
README.md - Claims API → MySQL database: saves claim
README.md - Claims API → Submit claim: returns reference
README.md - Claims schema → MySQL database: creates claims table
README.md - Health endpoint → MySQL database: checks connectivity
README.md