Skip to content

srettha/nasdaq-scraper-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nasdaq scraper api

Assignment from TDA to scrape http://www.nasdaq.com for its stock

*** In order to crawl http://www.nasdaq.com periodically use cron, checkout Cron guide ***

Demo

Environment guide

  • Navigate to src folder
  • Copy .env-sample to create environment file
cp .env-sample .env

Migration guide

  • Navigate to db folder
mysql -u your_username -p < init_db.sql
  • Navigate to server folder inside src
npm run migrate

Installation guide

  • Navigate to server folder inside src
npm install

Test guide

  • Navigate to server folder inside src
npm test

Cron guide

  • Cron will run every minute from 9:30 until 16:00 America/New_York
  • This can be reconfigure in scheduler.sh
  • Make scheduler executable
chmod +x scheduler.sh
  • Setup scheduler
./scheduler.sh

Production guide

Run production with pm2

** Install pm2 with npm globally (required) **

pm2 start ecosystem.config.js

About

Assignment from TDA to scrape http://www.nasdaq.com for its stock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published