This application uses the NY Times API to retrieve articles from The NY Times based on a user's input. It allows users to save articles to a MongoDB and allows comments to be attached to the saved articles.
-
The application is located as follows:
-
Heroku deployment: The NY Times API React App
-
GitHub repository: The NY Times API React App GitHub Repository
-
-
First the user inputs must be entered. A 'Topic' is optional, but a 'Start Date' and 'End Date' must be selected.
-
Selecting a 'Start Date' and 'End Date' will enable the
New Articles
button and clicking it will query the NY Times API for articles meeting the input criteria. The page will display the headlines linked to the full story on The NY Times website. A picture (if available) and summary of the article are also displayed. -
Clicking the
Save Article
button next to the article headline will save the article's information into a Mongo Database.
-
Clicking the
Saved Articles
button will pull the saved information from the Mongo Database and display the articles as before except with two buttons:Delete Article
andComments
. -
Clicking the
Delete Article
button will remove the article and all associated comments from the database.
-
Clicking the
Comments
button will open a modal that will allow the user to add a comment to the article. Multiple comments can be associated with the same article and will display in a list just above the new comment text box. -
Clicking the
x
next to the comment will remove just that comment from the database.