A full stack news scrapper that is scrapping data from multiple target websites and serving that data via a app.
- Vue.js
- Vite.js
- Axios.js
- Cheerio.js
- Express.js
Make sure to install the dependencies for both frontend and backend.
for backend
npm installfor frontend
cd client
npm install- App is divided into two part frontend and backend.
- Frontend (
clientfolder) contains Vue + Vite app for development purpose. - Backend (
rootfolder) is express app which serves thedistthat is build of frontend app and handlesAPIdata requests made by frontend Vue SPA. - Backend express app scrapes data from target websites using Cheerio and Axios and send it directly on frontend when
APIrequests are made on endpoints.
Start the development backend server on http://localhost:3000
npm run startStart the development Vue + Vite app server on http://localhost:5172
cd client
npm run devbuild command for frontend Vue + Vite app to update dist folder
cd client
vite build