This is a web app that lets users view, add and delete comments on the latest news.
Clone this repo to your computer.
In the terminal navigate to the root of this repo and run npm install
. When that’s finished, you should have these npm packages in your node_modules
folder:
express
axios
ejs
mongojs
body-parser
cheerio
request
nodemon server.js
from the terminal in the root folder and this should start the app on http://localhost:3000/Whenever a user visits your site, the app can scrape stories from the news outlet the ONION and display them for the user. The app should scrape and display the following information for each article:
Headline - the title of the article
Summary - a short summary of the article
URL - the url to the original article
Users should also be able to leave comments on the articles displayed. The comments should be saved to the database as well and associated with their articles. Users should also be able to delete comments left on articles. All stored comments should be visible to every user.