-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ build | |
.next | ||
|
||
**/src/tests/outputs | ||
graphite-demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}`); | ||
}); |