Skip to content

Add activity feed API#15

Closed
harrylewis wants to merge 1 commit intomainfrom
12-19-demo_eabb580d_add_activity_feed_api
Closed

Add activity feed API#15
harrylewis wants to merge 1 commit intomainfrom
12-19-demo_eabb580d_add_activity_feed_api

Conversation

@harrylewis
Copy link
Copy Markdown
Contributor

@harrylewis harrylewis commented Dec 20, 2025

TL;DR

Added a basic Express server with a mock activity feed endpoint.

What changed?

Created a new server.js file in the graphite-demo directory that:

  • Sets up an Express server running on port 3000
  • Defines a mock activity feed with sample data
  • Implements a GET /feed endpoint that returns the activity feed as JSON

How to test?

  1. Install dependencies: npm install express
  2. Start the server: node graphite-demo/server.js
  3. Access the endpoint: curl http://localhost:3000/feed or visit in a browser
  4. Verify that the response contains the mock activity feed data

Why make this change?

This provides a simple backend API for the graphite demo application to fetch activity feed data, enabling frontend development without requiring a full backend implementation. The mock data allows for testing the activity feed display functionality.

Copy link
Copy Markdown
Contributor Author

harrylewis commented Dec 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@harrylewis harrylewis mentioned this pull request Dec 20, 2025
@harrylewis harrylewis marked this pull request as ready for review December 20, 2025 04:21
Comment thread graphite-demo/server.js
Comment on lines +3 to +9
const port = 3000;

// Fake data for the activity feed
const activityFeed = [
{
id: 1000,
title: 'New Photo Uploaded',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another afd

asdfjl

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zxcz

@harrylewis harrylewis marked this pull request as draft December 20, 2025 04:26
@harrylewis harrylewis closed this Dec 20, 2025
@harrylewis harrylewis deleted the 12-19-demo_eabb580d_add_activity_feed_api branch December 20, 2025 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant