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
***
- http://128.199.251.234:3000/api-docs for swagger
- Navigate to
src
folder - Copy
.env-sample
to create environment file
cp .env-sample .env
- Navigate to
db
folder
mysql -u your_username -p < init_db.sql
- Navigate to
server
folder insidesrc
npm run migrate
- Navigate to
server
folder insidesrc
npm install
- Navigate to
server
folder insidesrc
npm test
- 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
** Install pm2 with npm globally (required) **
pm2 start ecosystem.config.js