Skip to content

fahimbagar/bankmega-promotions-node

Repository files navigation

Get Bank Mega Promotions (Node.JS)

This project is used to scrap Bank Mega Promotions website.

Getting Started

This project has been tested with Node.JS 8.

Installation

Install node_modules package using:

$ npm install
or 
$ yarn install

Usage

  • To avoid Error: read ECONNRESET, set this value so every request can be delayed and repeated
const MILLISECONDS_WAITING = 1000
const MAXIMUM_RETRIES = 4
  • Run via ts-node
$ ts-node src/solution.ts
  • Or, build and run via node
$ yarn build
or
$ npm run-scripts build

$ node build/src/solution.js 

Unit Test

$ yarn test
or
$ npm run-scripts test

Library

  1. rxjs
  2. rx-http-requests
  3. jest

About

Get Bank Mega Promotions using Node and Typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published