Skip to content

madfp/node-crawler

Repository files navigation

NodeJS crawler

This project is a RESTful API made with NodeJS and Typescript, using express-js

  1. Crawls the official website of the Central Bank of Venezuela (https://www.bcv.org.ve) daily to retrieve the current Bs./USD exchange rate.
  2. Stores the exchange rate in a database.
  3. Provides endpoints to retrieve the current exchange rate, as well as historical rates.

Installation

Clone the repository

git clone https://github.com/madfp/node-crawler.git

Install the dependencies

npm i 

Configuration

  1. Set the environment variables following the .env.example file
  2. Set up the database using docker
docker compose up -d
  1. Seed the database
npm run seed

Running the project

You can see all the available scripts on the package.json file

npm run dev


### Cron job
The project uses a cron job to crawl the exchange rate daily at 13:00 America/Caracas.
You can change the cron job schedule on the src/utils/crawler.ts file

About

ExpressJS RESTful API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published