An open API service indexing awesome lists of open source software.

https://github.com/overrevvv/newsscrapperapp

Full Stack Web Scrapper App
https://github.com/overrevvv/newsscrapperapp

axios cheeriojs css expressjs html javascript vuejs

Last synced: 3 months ago
JSON representation

Full Stack Web Scrapper App

Awesome Lists containing this project

README

          

# NewsScrapper

## What is this?
A full stack news scrapper that is scrapping data from multiple target websites and serving that data via a app.

![news-scrapper-app vercel app_](https://github.com/OverRevvv/NewsScrapperApp/assets/98686837/f6115145-c2f7-4ab9-99bf-4f6cf444f9f3)


[🔗 LINK : Click Me!!](https://newsscrapper.vercel.app/)


# Tech
- Vue.js
- Vite.js
- Axios.js
- Cheerio.js
- Express.js

## Setup
Make sure to install the dependencies for both frontend and backend.

for backend
```bash
npm install
```
for frontend
```bash
cd client

npm install
```

## Development


### How it works
- App is divided into two part frontend and backend.
- Frontend (`client` folder) contains Vue + Vite app for development purpose.
- Backend (`root` folder) is express app which serves the `dist` that is build of frontend app and handles `API` data 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 `API` requests are made on endpoints.


Start the development backend server on http://localhost:3000

```bash
npm run start
```
Start the development Vue + Vite app server on http://localhost:5172

```bash
cd client

npm run dev
```
build command for frontend Vue + Vite app to update `dist` folder

```bash
cd client

vite build
```