How harishanandh/java-proj works
SATARK is a disaster-preparedness web application: citizens use its portal and drill console to review safety guidance, complete assessments, and track readiness. The principal runtime flow is browser to servlet API, then to user-data operations and persistence; user endpoints also support registration, login, profiles, and leaderboards. The README documents scramble and visual scenario drills, but the sampled server excerpt shows quiz questions and score updates only. The graph preserves those documented UI capabilities while distinguishing them from sampled backend behavior. Relationships are cited to the README or excerpts; unsampled details are not inferred.
Main entry points: game.html Drill console · UserDAO.java User data operations · index.html Safety portal · HibernateUtil.java Hibernate manager
Components 15
Citizen experience
- Safety portal
webapp/index.html - Drill console
webapp/game.html - Safety references
webapp/index.html
Preparedness drills
- Protocol assessment
src/com/satark/servlet/GameServlet.java - Codes scramble
webapp/game.html - Scenario challenge
webapp/game.html
Application services
- User operations
src/com/satark/servlet/UserServlet.java - Drill API
src/com/satark/servlet/GameServlet.java - User data operations
src/com/satark/dao/UserDAO.java
Persistence
- User entity
src/com/satark/model/User.java - Hibernate manager
src/com/satark/util/HibernateUtil.java - JDBC fallback
src/com/satark/util/DBUtil.java - Hibernate configuration
src/hibernate.cfg.xml - PostgreSQL
Other components
- Citizen
Connections 17
- Citizen → Safety portal: opens
README.md - Safety portal → Drill console: launches
README.md - Safety portal → Safety references: presents
README.md - Drill console → Protocol assessment: takes assessment
README.md - Drill console → Codes scramble: offers drill
README.md - Drill console → Scenario challenge: offers challenge
README.md - Drill console → Drill API: requests questions and scores
README.md - Citizen → User operations: submits user actions
README.md - User operations → User data operations: delegates
src/com/satark/servlet/UserServlet.java - Drill API → User data operations: updates scores
src/com/satark/servlet/GameServlet.java - User data operations → Hibernate manager: uses ORM
src/com/satark/dao/UserDAO.java - User data operations → JDBC fallback: falls back to JDBC
src/com/satark/dao/UserDAO.java - User data operations → User entity: creates and returns
src/com/satark/dao/UserDAO.java - Hibernate manager → User entity: registers entity
src/com/satark/util/HibernateUtil.java - Hibernate manager → Hibernate configuration: loads configuration
src/com/satark/util/HibernateUtil.java - Hibernate configuration → PostgreSQL: configures connection
README.md - JDBC fallback → PostgreSQL: opens JDBC connection
src/com/satark/util/DBUtil.java