[Play] - News Feed Application
First thing, PLEASE READ THIS: ReactPlay Code Review Checklist
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue) #670
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
@NagarjunShroff is attempting to deploy a commit to a Personal Account owned by @reactplay on Vercel.
@reactplay first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| react-play | ✅ Ready (Inspect) | Visit Preview | Oct 20, 2022 at 11:41AM (UTC) |
@atapas @koustov here email is shown instead of name, is it because of github or user entry?

@NagarjunShroff I am getting a 426 error from the API.
@murtuzaalisurti Checking...
@atapas @koustov here email is shown instead of name, is it because of github or user entry?
@NagarjunShroff Did you provide your github id while creating the play?
@atapas @koustov here email is shown instead of name, is it because of github or user entry?
@NagarjunShroff Did you provide your github id while creating the play?
@atapas, yes i did
Let's wrap up the review and fixes for merge.
@NagarjunShroff Have we added the API key in vercel?
@NagarjunShroff Have we added the API key in vercel?
No we haven't added it - Could you please add it?
@atapas api key needs to be added I guess
Visit Preview
I remember adding it. I shall check again. Irrespective of it, we need to handle the error messages correctly!
Due to some reasons, the newsData is undefined and breaks! The reason can be anything, including there are no API keys. Let's handle the error message correctly @NagarjunShroff
<div className="card-container">
{newsData.length > 0 ? (
newsData.map((news, i) => <NewsCard news={news} key={i} />)
) : (
<CircularProgress />
)}
</div>
{"status":"error","code":"corsNotAllowed","message":"Requests from the browser are not allowed on the Developer plan, except from localhost."}
The free key cannot be used on a production server. So @NagarjunShroff what needs to be done for this play?
{"status":"error","code":"corsNotAllowed","message":"Requests from the browser are not allowed on the Developer plan, except from localhost."}The free key cannot be used on a production server. So @NagarjunShroff what needs to be done for this play?
@koustov, if APIs don't work- We can ignore it play.
@NagarjunShroff
Why shelve the hard work?
Can you repurpose it using the free API?
Here is an example: https://saurav.tech/NewsAPI/
@NagarjunShroff
Why shelve the hard work?
Can you repurpose it using the free API?
Here is an example: https://saurav.tech/NewsAPI/
Thanks!!! @atapas, Sure will do it.
Ready for review.
@atapas Please review.
