Deployed Here: http://humblegamer.herokuapp.com/
Hello! Welcome to Humble Gamer! This full-stack site allows users to view and leave comments on the latest video game news articles.
Humble Gamer is built using JavaScript, node.js, and Express to query and route data, BootStrap, CSS, and Handlebars to generate the HTML. The news articles are scraped from the video game news site 'Polygon' using Cheerio. The application is currently deployed to Heroku and uses the popular noSQL Database MongoDB.
Node Packages Used: express, express-handlebars, mongoose, body-parser, cheerio, and request
- Create a GitHub repo for this assignment and clone it to your computer.
- Heroku Account:
- Create a Heroku account for deployment here https://www.heroku.com/ .
- Install MongoDB
- For installation assistance visit https://docs.mongodb.com/manual/installation/ .
- Open up the project and run npm install.
- The following npm packages should now be installed:
- express
- mongoose
- express-handlebars
- body-parser
- cheerio
- request
- In order to deploy the project to Heroku, you need to set up an mLab provision. mLab is a remote MongoDB database that Heroku supports natively.
- Create a Heroku app in your project directory.
- Run 'heroku addons:create mongolab' in your Terminal/Bash window:
- You'll need to find the URI string that connects Mongoose to mLab. Run this command to retrieve that string:
- 'heroku config | grep MONGODB_URI'
- When you’re ready to connect Mongoose with your remote database, simply paste the URI string as the lone argument of your mongoose.connect() function.
- User clicks "SCRAPE NEW ARTICLES" button.
- Aricles will be scraped from Polygon and displayed in the news feed.
- User's can click the article link to be redirected to that specific article.
- Every article has it's own "Comment" button.
- A user has the option of leaving a comment(taking notes for personal use) on any specific article that's been scraped.
- A comment can be made by clicking the "Comment" button attached to each article listing, typing in the input field under "Notes", and then clicking "Save Note".
- The comment will not be saved if "Save Note" is not clicked after entering information.
- To view your comment, simply click on the "Comment" button again to view your saved note or add more information to that particluar note.
- To delete a comment, highlight the text you want to delete and press delete on your keyboard. Then click "save note" to update the database.
- A user has the option of saving as many articles as they please.
- An article can be saved by clicking the "Save Article" button.
- This will add the saved article to the database.
- The saved articles can be found by clicking the "All Saved Articles" button located in the navigation bar.
- Here, users can view all of the saved articles and comments as well as delete any articles by clicking the "Delete" button attached to each article listing.
Thank you for using Humble Gamer! Please contact me directly if you have any questions or suggestions.