This is a demo project that shows how to scrape data from an external website, save it to local database and then serve data from local API express server and display it to the user using React frontend.
- Clone the project.
- Install dependencies with
npm
:
npm install
- Run scrapper
npm run scrap
- Run the API server
npm run server
- Run the frontend
npm run dev
- Visit the site at: http://localhost:5173 (Vite default)
You can adjust the price limit for items to be displayed. It uses local database so it will be fast and requests are debounced so it will also limit the IO.