Skip to content

This application uses the NY Times API to retrieve articles from The NY Times based on a user's input and allows the user to save articles to a MongoDB and attach comments to the saved articles.

Notifications You must be signed in to change notification settings

bpzimmerman/nytreact

Repository files navigation

NY Times API React Application

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.

Main Screenshot

Instructions

  1. The application is located as follows:

New Articles

New Articles Screenshot

  1. First the user inputs must be entered. A 'Topic' is optional, but a 'Start Date' and 'End Date' must be selected.

  2. 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.

  3. Clicking the Save Article button next to the article headline will save the article's information into a Mongo Database.

Saved Articles

Saved Articles Screenshot

  1. 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 and Comments.

  2. Clicking the Delete Article button will remove the article and all associated comments from the database.

Comments

Comments Screenshot

  1. 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.

  2. Clicking the x next to the comment will remove just that comment from the database.

About

This application uses the NY Times API to retrieve articles from The NY Times based on a user's input and allows the user to save articles to a MongoDB and attach comments to the saved articles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published