This is a full-stack JavaScript app built using MongoDB, Mongoose, Node.js, Express.js, Handlebars.js, HTML, and CSS. It scrapes the TechCrunch homepage and stores article titles and links, along with your notes and favorites, in MongoDB. The articles and notes collections reference each other through population.
https://mongo-tech-news-scraper.herokuapp.com/
To see updated news stories, click Get new articles
at the top of the Home
page. To view the full article, click the View article on TechCrunch
link.
When you see an article in the list that you want to mark as a favorite, click Save article
, and read it again by clicking Saved articles
in the top menu bar. After you have an article in your saved list, you can comment on it by clicking Add note
.
Note: There is no login system, so all saved articles and comments are visible to and can be deleted by all users.
These must be installed to run the app locally:
You first need to make a local MongoDB database named news
. Then, in a terminal window, navigate into the folder where you downloaded this app and type npm install
. To start the app, type node server.js
and open your browser to localhost:3000
.
- HTML, CSS, jQuery, Bootstrap, Handlebars.js
- JavaScript
- Node.js
- MongoDB and Mongoose
- Express.js
- npm, including express and body-parser packages.
- cheerio for scraping the website