This web application uses Mongoose and Cheerio muscles to scrape news from another site and allows users leave comments on the latest news. Save data in MongoDB.
- NodeJs
- CSS3
- Javascript
- jQuery
- Handlebars
- MongoDB
- NPM packages
NPM packages
body-parser
(Node.js body parsing middleware)express
(Web framework)express-handlebars
(Handlebars view engine for Express)morgan
(HTTP request logger middleware)mongoose
(Mongoose MongoDB ODM)bluebird
(Fully featured promise library )cheerio
(Core jQuery designed specifically for the server.)request
(Simplified HTTP request client.)
-
Git Clone the repository to your local machine.
-
Go to the config directory and change development environment properties.
-
Navigate to the folder where the repository in Terminal.
-
Run the command
npm install
to download the required dependencies. -
Then type
node server.js
in terminal inside the directory. -
Then run below address on browser.
localhost:3000