From 8b76a6f8bf44d52e05c65c2c945411eda98c2d27 Mon Sep 17 00:00:00 2001 From: anthony4m Date: Tue, 14 Jan 2025 15:49:17 +0000 Subject: [PATCH 1/2] { refactored, Some tests fail, but because we switched to slotted pages } --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c38b417..9d57a3a 100644 --- a/.gitignore +++ b/.gitignore @@ -235,4 +235,8 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser -.idea \ No newline at end of file +.idea + +*.sum +LRU.go +*.exe From d20aec3c84b1ff1bcaa489642614c0bcffaa8132 Mon Sep 17 00:00:00 2001 From: anthony4m Date: Tue, 14 Jan 2025 15:52:38 +0000 Subject: [PATCH 2/2] Add activity feed API --- graphite-demo/server.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 graphite-demo/server.js diff --git a/graphite-demo/server.js b/graphite-demo/server.js new file mode 100644 index 0000000..54925ed --- /dev/null +++ b/graphite-demo/server.js @@ -0,0 +1,30 @@ +const express = require('express'); +const app = express(); +const port = 3000; + +// Fake data for the activity feed +const activityFeed = [ + { + id: 1000, + title: 'New Photo Uploaded', + body: 'Alice uploaded a new photo to her album.' + }, + { + id: 2000, + title: 'Comment on Post', + body: "Bob commented on Charlie's post." + }, + { + id: 13, + title: 'Status Update', + body: 'Charlie updated their status: "Excited about the new project!"' + } +]; + +app.get('/feed', (req, res) => { + res.json(activityFeed); +}); + +app.listen(port, () => { + console.log(`Server running on port ${port}`); +}); \ No newline at end of file