feat: server-based version with menu flagging, distributed polling, and SSE

Complete implementation including:
- Express server with Bessa API proxy
- Puppeteer scraper for menu data
- Flag storage (file-based persistence)
- SSE manager for real-time updates
- Polling orchestrator for distributed polling
- Frontend with weekly view, ordering, and flagging UI
- Yellow/green glow indicators for flagged items
This commit is contained in:
2026-02-12 08:36:05 +01:00
commit bc98a19fc6
98 changed files with 17157 additions and 0 deletions

21
debug_friday.js Normal file
View File

@@ -0,0 +1,21 @@
const SESS_KEY = 'c3418725e95a9f90e3645cbc846b4d67c7c66131';
const URL = 'https://web.bessa.app/api/v1/venues/591/menu/7/2026-02-13/';
async function run() {
try {
const response = await fetch(URL, {
headers: {
'Authorization': `Token ${SESS_KEY}`,
'Accept': 'application/json',
'X-Client-Version': '3.10.2'
}
});
const data = await response.json();
console.log(JSON.stringify(data, null, 2));
} catch (e) {
console.error(e);
}
}
run();