How peera-exe/race-lap-tracker works
Race Lap Tracker is a small browser-based lap-recording application: users browse and filter laps, create or edit records, and delete them; the page refreshes its displayed data through the app’s own REST API. The browser interface also supports Thai/English text and responsive table/card layouts. Express serves the client and mounts the lap routes, which enforce request headers and read or write JSON-file storage. UI capabilities beyond the sampled JavaScript are documented in the README; the graph avoids inferring additional internal calls.
Main entry points: index.html Web page · laps.js Lap REST API · index.js Express server · app.js Lap UI
Components 8
Browser client
- Web page
public/index.html - Responsive styles
public/style.css - Lap UI
public/app.js
API server
- Lap REST API
server/routes/laps.js - Request integrity
server/routes/laps.js - Express server
server/index.js
JSON storage
- Lap records
server/data/laps.json
Other components
- User
Connections 8
- User → Web page: uses
README.md - Web page → Lap UI: loads
README.md - Web page → Responsive styles: styles with
README.md - Express server → Web page: serves
server/index.js - Lap UI → Lap REST API: fetches laps
public/app.js - Lap REST API → Request integrity: checks headers
server/routes/laps.js - Lap REST API → Lap records: reads and writes
server/routes/laps.js - Express server → Lap REST API: mounts routes
server/index.js