A Node.js
& MongoDB
webapp that web-scrapes news data from The Onion and allows users to comment about what they have read. Users can also delete unwanted comments.
Please check out the deployed version in Heroku here!
On the backend, the app uses express
to serve routes and mongoose
to interact with a MongoDB
database.
On the frontend, the app uses handlebars
for templating each article and materialize
as a styling framework. The app also uses jQuery
and AJAX
to help with making post requests.
And for webscraping, the app uses the request
and cheerio
node packages. All webscrapping code can be found in the controllers.js
file.
If you wish to clone the app down to your local machine...
- Ensure that you have MongoDB set up on your laptop * An amazing repo to get you started with that can be found here.
- Once you are set up,
cd
into this repo and runnpm install
. - Then open another bash or terminal window and run
mongod
- Run the script with
node server.js
. - Navigate to
localhost:3000
in your browser.