Visit the Github Page of this project at hay-espacio-en-el-taco.github.io/dbs-scraper.
First you will need to download and install VSCode (v1.33.1 or better) & Docker
- Open VSCode
- Move to Debug tab in VSCode.
- Select
Run Scraper
in the dropdown menu next to run button. - Click the
Run
button (F5). - Enjoy your breakpoints! =D
- Open VSCode.
- Go to
"Terminal" > "Run Task..."
and run the next tasks:- If it's the first time you run this app run the
Get cards.json file into web-page folder
task. - Run the
Run react app (detached)
task.
- If it's the first time you run this app run the
- Wait for it to build your app. Please note that first time may take several minutes.
- Visit
http://localhost:3000/
in your browser.
Add the new urls in DBS_DATA_URLS
array located at ./scraper/src/index.js file.
Download & install Docker
docker build -t dbs-scraper .
- Run
docker run --rm --name scraper -p 80:3000 dbs-scraper
- Now visit http://localhost/
- Download the latest
cards.json
file from the releases section of this repo - Copy the
cards.json
file into the/web-page/src
folder - Run
docker run -it --rm --name scraper -v ${PWD}/web-page/src:/home/node/app/web-page/src -p 80:3000 dbs-scraper
(note that we are mounting a volume) - Now visit http://localhost/