Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display News and Upvote News #113

Open
0mBudsMan opened this issue Dec 31, 2023 · 15 comments
Open

Display News and Upvote News #113

0mBudsMan opened this issue Dec 31, 2023 · 15 comments

Comments

@0mBudsMan
Copy link
Collaborator

0mBudsMan commented Dec 31, 2023

Issue: Create Dynamic News Display Route

#Time: 24 hours

Description

Problem

Currently, we lack a dynamic route for displaying news on the frontend based on a specific scoopId. The backend route /api/scoop/:scoopId and the upvote functionality /api/scoop/:scoopId/upvote are already implemented. A page already exists in frontend /pages/Scoop.js . Fetch data using redux, and save it in store. Use what is saved in store to display in frontend. Also implement upvote functionality

Goal

The goal is to create a dynamic route /scoop/:scoopId on the frontend to display a specific news article using the existing backend routes.

Tasks

  1. Frontend Dynamic Route:

    • Implement a dynamic route /scoop/:scoopId on the frontend to display news articles.
  2. Integrate Backend Routes:

    • Ensure the frontend dynamic route integrates seamlessly with the existing backend route /api/scoop/:scoopId for fetching news details.
  3. Display Details:

    • Display the fetched details on the frontend when accessing /scoop/:scoopId.
  4. Upvote Functionality:

    • Implement an upvote functionality on the frontend that triggers the existing backend route /api/scoop/:scoopId/upvote.
  5. Error Handling:

    • Implement proper error handling for cases where the scoopId is invalid or the news article is not found.
  6. Testing:

    • Write tests to ensure the correctness of the dynamic route, integration with backend routes, and upvote functionality.

Additional Information

If you have any questions or need clarification, feel free to comment on this issue. Deadline: 36 hours

Thank you for your contribution!

@Jarviss77
Copy link
Contributor

Jarviss77 commented Dec 31, 2023

Claim

1 similar comment
@Rohit-110
Copy link
Contributor

Rohit-110 commented Dec 31, 2023

Claim

@0mBudsMan 0mBudsMan assigned Jarviss77 and unassigned Jarviss77 Dec 31, 2023
@Rohit-110
Copy link
Contributor

Claim

1 similar comment
@kushal7201
Copy link
Contributor

Claim

@0mBudsMan
Copy link
Collaborator Author

@kushal7201 this makes use of redux. U sure you can do it?

@TheDivineAurora
Copy link
Contributor

claim

@kushal7201
Copy link
Contributor

@0mBudsMan I will try

@Apoorv012
Copy link
Contributor

Apoorv012 commented Jan 4, 2024

claim

@Rohit-110
Copy link
Contributor

Claim

1 similar comment
@WadadParker
Copy link
Contributor

Claim

@TheDivineAurora
Copy link
Contributor

CLAIM

@0mBudsMan 0mBudsMan assigned Rohit-110 and unassigned Rohit-110 Jan 4, 2024
@osamabenlade
Copy link

Claim

@Apoorv012
Copy link
Contributor

Working on it

@0mBudsMan
Copy link
Collaborator Author

@osamabenlade no need to claim, you can work on it

@Jarviss77
Copy link
Contributor

Jarviss77 commented Jan 6, 2024

Allah hu Akbar 🤲

This was referenced Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants