Skip to content

Add activity feed api - #1

Draft
othmanAbdelaziz2001 wants to merge 1 commit into
mainfrom
09-18-demo_e4403347_add_activity_feed_api
Draft

Add activity feed api#1
othmanAbdelaziz2001 wants to merge 1 commit into
mainfrom
09-18-demo_e4403347_add_activity_feed_api

Conversation

@othmanAbdelaziz2001

@othmanAbdelaziz2001 othmanAbdelaziz2001 commented Sep 18, 2024

Copy link
Copy Markdown
Owner

TL;DR

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

What changed?

  • Created a new server.js file in the graphite-demo directory.
  • Implemented an Express server that listens on port 3000.
  • Added a /feed endpoint that returns a mock activity feed as JSON.
  • Included sample activity feed data with three entries.

How to test?

  1. Install dependencies: npm install express
  2. Start the server: node server.js
  3. Send a GET request to http://localhost:3000/feed
  4. Verify that the response contains the mock activity feed data

Why make this change?

This change provides a basic backend structure for the activity feed feature, allowing frontend development to proceed with a functional API endpoint. The mock data enables testing and development of the activity feed UI without requiring a full database implementation.

@othmanAbdelaziz2001

othmanAbdelaziz2001 commented Sep 18, 2024

Copy link
Copy Markdown
Owner Author

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

Join @othmanAbdelaziz2001 and the rest of your teammates on Graphite Graphite

Comment thread graphite-demo/server.js Outdated
},
{
id: 13,
title: 'Status Update',

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

can you change this

@othmanAbdelaziz2001 othmanAbdelaziz2001 added the bug Something isn't working label Sep 18, 2024
@othmanAbdelaziz2001
othmanAbdelaziz2001 force-pushed the 09-18-demo_e4403347_add_activity_feed_api branch from 489f88b to e3211d2 Compare September 18, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant