Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 846 Bytes

README.md

File metadata and controls

62 lines (42 loc) · 846 Bytes

Installation

Install NodeJS

For Linux:

sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

For Windows or MacOS: Download NodeJS Install package

Install project packages:

npm ci
bower install

Build the project:

npm run build

Genereate html file:

node <full_path>/cron/crawlerRunner.js

Node cron service

Install PM2 globally

npm i -g pm2

Install local packages for server

npm ci

Init start-up service

pm2 start ecosystem.config.js
pm2 save

As alternative - linux crontab:

00 6,9,11-14,16,18,20 * * * <user> node <full_path>/cron/crawlerRunner.js