How jaswanth-komatineni/cricket-insights-ipl works
This is a small IPL statistics web app: users choose a season and statistic, submit the selection, and view matching player results in a table. The browser submits JSON to an Express route, which selects a SQL query and returns PostgreSQL rows; the browser renders them. The README documents four statistic types and season selection. A separate database.js script also connects to PostgreSQL and queries the match table. The graph reflects the shown code and README; styling and static-page delivery are included, but unsampled page details are not inferred.
Main entry points: main.html Statistics page · server.js Query API and statistic selection · script.js Season and statistic selection · database.js Standalone database query
Components 8
Browser interface
- Statistics page
public/main.html - Season and statistic selection
public/script.js - Results table rendering
public/script.js - Page styling
public/styles.css
Query service
- Query API and statistic selection
server.js - Standalone database query
database.js
Match data
- PostgreSQL match table
Other components
- User
Connections 9
- User → Statistics page: opens
README.md - User → Season and statistic selection: selects
README.md - Statistics page → Season and statistic selection: loads script
README.md - Season and statistic selection → Query API and statistic selection: posts JSON
public/script.js - Query API and statistic selection → PostgreSQL match table: queries
server.js - Query API and statistic selection → Results table rendering: returns rows
server.js - Results table rendering → User: displays table
public/script.js - Statistics page → Page styling: uses styles
- Standalone database query → PostgreSQL match table: queries
database.js