Giter Club home page Giter Club logo

dbs-scraper's Introduction

DBS Scraper & Deck Builder (WIP) Travis Status

Visit the Github Page of this project at hay-espacio-en-el-taco.github.io/dbs-scraper.

Running this project with VSCode

First you will need to download and install VSCode (v1.33.1 or better) & Docker

Running & debugging Scraper app

  • 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

Running the React App (UI)

  • 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.
  • Wait for it to build your app. Please note that first time may take several minutes.
  • Visit http://localhost:3000/ in your browser.

Updating the url list to get the newest cards

Add the new urls in DBS_DATA_URLS array located at ./scraper/src/index.js file.

Running this project with Docker

Download & install Docker

Build it

docker build -t dbs-scraper .

Run it

  • Run docker run --rm --name scraper -p 80:3000 dbs-scraper
  • Now visit http://localhost/

Running for development

  • 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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.