Skip to content

A mobile-responsive Heroku-deployed app that lets users view, save, and make notes on news from TheHorse.com. The app uses Mongoose, Cheerio, Express, Express-handlebars, and Axios.

Notifications You must be signed in to change notification settings

JLGaumnitz/mongo-news-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Horse Edition of mongo news scraper

A mobile-responsive Heroku-deployed app that lets users view, save, and make notes on news from TheHorse.com. The app uses Mongoose, Cheerio, Express, Express-handlebars, and Axios.

created by Jennifer Gaumnitz


Heroku deployed app: https://immense-island-25432.herokuapp.com/

GitHub repository: https://github.com/JLGaumnitz/mongo-news-scraper


Mongo News Scraper Start

How You Can Get Started With This Web App

To use the app:

Simply go to the Heroku link above.

Click on the "Get New Articles" button at top right, which activates the scraping article titles and links from TheHorse.com's News webpage.

Mongo News Scraper Start

Then click the Home button to see the lst of articles with the title, summary, and a link displayed on the Home page.

Mongo News Scraper Start

If you wish to save an article and make notes on it, click the "Save Article" below the article you wish to save.

Mongo News Scraper Start

The article is then moved from the Home page and moved to the Saved Articles page. Click on "My Saved Articles" in the navigation bar. You will then see the list of saved articles, each with two buttons to "Add a Note" or "Remove from Saved Articles", which do exactly what they say.

Mongo News Scraper Start

If you click the "Add a Note" button, a modal appears with a field to add a note.

Mongo News Scraper Notes Field

Mongo News Scraper 1 Note Added

Mongo News Scraper 2 Notes Added

You can delete notes by clicking the red "X" next to the note you wish to delete.

Mongo News Scraper 1 Note Deleted

To move an article out of this list, click the button that says "Remove from Saved Articles" and the article moves back to the Home page. (All notes are lost when the article is moved out of the Saved Articles list.)

A few other notes:
"The Horse" logo at the top left is an active link that takes you to the main page of thehorse.com. All of the links are red if not followed, black on hover, and navy blue if followed.

The site is mobile responsive, built with Bootstrap 4.0 and CSS with media queries.

Creating the app from my files in my GitHub repository

To install and use this application yourself, clone the GitHub repository.

You will need to have installed:

  • Node
  • And these dependencies:
    • axios: 0.19.1
    • cheerio: 1.0.0-rc.3
    • express: 4.17.1
    • express-handlebars: 3.1.0
    • mongoose: 5.8.7
    • morgan: 1.9.1

Before running the server.js file using node.js, you will need to run "npm install." You will also need to have mongo installed and be running mongod in the background.

To deploy to Heroku, you will need to provision an mLab remote database, using the mLab MondoDB add-on in the Heroku dashboard.

Then run "node server.js" at the command line to begin the server, and then navigate to localhost:3000 in your browser to see the HTML home page and proceed from there.

Why the Project is Useful

The app fulfills a homework assignment for University of Kansas Coding Boot Camp, August 2019 to February 2020. Besides allowing me to continue working with Node.js and npm packages, the assignment also allowed me to work with express, express-handlebars, and MySQL.

Where Users Can Get Help with This Project

Questions? Contact Jennifer Gaumnitz at [email protected]

Who Maintains and Contributes to the Project

Jennifer Gaumnitz created the project. I probably will not update it again after completing this assignment.

About

A mobile-responsive Heroku-deployed app that lets users view, save, and make notes on news from TheHorse.com. The app uses Mongoose, Cheerio, Express, Express-handlebars, and Axios.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published