inker / draw

⚽ Champions League draw simulator
https://inker.github.io/draw/
236 stars 69 forks source link

How to get started #54

Closed Acta2000 closed 5 years ago

Acta2000 commented 6 years ago

Hello,

id like to use your script with other teams. But im really new to typescript.

What must i do to get this script working on my server? After i upload nothing happends. When im open http://mydomain/drawer/src/template.html igot a blank page There is no Index.html

I know that the name of teams und countries are written under /clubs.json etc.

inker commented 6 years ago

@Acta2000 This is a web application, so just copying the index.html to run it would not suffice. In order to run it locally, you'll need Git (to clone the project), Node (as a runtime), npm (to install the dependencies, included in node).

First clone the project. I don't know which OS you're using, but if it's anything Unix-like, open your terminal & type: git clone https://github.com/inker/draw.git Now go to the project directory: cd draw and install the dependencies: npm i Once done, start the project: npm start It will build the project & open a new tab in your browser.

All team names are fetched from Bert Kassies' site, so if you wish to roll your own, you'll have to override them somewhere in this function.

Good luck!

P.S. To run on Windows, you'll probably need git bash (which comes with Git).