This project is a web scraper that consists of a client and a server. The client is a React app bootstrapped with vite and the server uses Express.js, Axios, Cheerio, and Puppeteer for web scraping.
The project has two main folders:
client: This is where the front-end code resides.server: This contains the back-end code for the web scraper.
- Frontend: React, Vite
- Backend: Node.js, Express, Axios, Cheerio, Puppeteer
- Node.js (v14 or later)
- npm or yarn
-
Clone the repository:
git clone https://github.com/yourusername/react-node-web-scraper.git cd react-node-web-scraper -
Install dependencies for both server and client applications using:
npm install # or yarn
In the server directory, you can run:
Runs the server in development mode with nodemon. Open http://localhost:8000 to view the response from / endpoint in the browser or any other api client.
In the client directory, you can run:
npm run dev
# or
yarn devRuns the app in development mode. Open http://localhost:5173 to view it in the browser.
npm run build
# or
yarn buildBuilds the app for production to the dist folder.
npm run preview
# or
yarn previewPreview the production build locally.