This is a full stack web app that lets users leave comments on the latest news. The articles are web scraped from http://www.echojs.com
- Node.js, Express, Express handlebars, Cheerio, Request, Body Parser, Morgan
- MongoDB, Mongoose
- Jquery, Javascript, AJAX, HTML5, CSS3
- How to webscrape the data?
- How to how to associate the two collections mongoDB collections?
- Using request and Cheerio npm modules helped with webscraping
- One to many relationship can be established by storing the ids in the children in the parent collection.
-
When the user visits the site the news articles are webscraped, and checked if they already exist in the database. If they don't, then they added to the database.
-
The use can navigate to different articles and leave his notes.
-
The user also has an option to delete the notes