How stu082/food-stall-demo works
The repository contains a web entry page and a Netlify function that accepts score submissions. The shown function checks the HTTP method and validates the name and score before posting a score to Supabase; failed saves produce an error response. The page’s behavior and how it invokes the function are not shown, so that connection is left unverified.
Main entry points: index.html Web page · submit-score.js Score handler
Components 4
Web interface
- Web page
index.html
Score submission
- Score handler
netlify/functions/submit-score.js
Other components
- Visitor
- Supabase scores
Connections 3
- Visitor → Web page: visits
- Web page → Score handler: submits score
- Score handler → Supabase scores: writes score
netlify/functions/submit-score.js