-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
USER STORY
As a user, when I login to the site and navigate to the News tab, I want to see information about MY news.
ACCEPTANCE CRITERIA
WHEN i click on the news tab
THEN i should see my information about MY news displayed on the dashboard
AND i should see the news title, synopsis and the URL for the news
DEVELOPMENT
- Create a
newsdiv idonindex.html`. - Create an
newsData.jsfile injavascripts>helpers>data. - Import
axiosandapiKeys. - Get the databaseURL using
const firebaseUrl = apiKeys.firebaseKeys.databaseURL; - Create a function called
getNewsByUidthat creates anew Promise. pass inuid. - Make an
axioscall tonewsand order byuid - Get the response using
.then()and store inconst newsResult - Using
Object.Keysloop thru eachkeyin the object and create anid. newsResult[newsId].id = newsId;- push into an empty array
const newsandresolve - Export function
- In
news.js,importfunction andprintToDom
Metadata
Metadata
Assignees
Labels
No labels