mercadolivre-ofertas
API developed using web scraping to show products offers from Mercado Livre.
An always up-to-date version is hosted at: https://mercadolivre-ofertas.herokuapp.com/
Stack
- Node.js 16.x (w/ yarn)
- Express.js 4.x
- Puppeteer 14.x
- Node-cache 5.x
- TypeScript 4.x
Installation
Install packages:
yarn install
If you want to have the API running on a different port, change in src/server.ts
to your preferred port.
Depending on if you want to install the API for production or for development, the process is different.
Production
Build the project using the following command:
yarn build
Then start the server with this command:
yarn start
Development
Watch the project's files and start dev server via the following command:
yarn dev
License
Licensed under Open Software License v3.0