kcapp (pronounced keɪk æp) is an application used for scoring Darts matches, with multiple input methods, statistics tracking, and more. See Wiki for more information
To get started with development quickly, the following installer script can be used. More details can be found on the Wiki
- Clone repository
git clone https://github.com/kcapp/frontend.git
- Install all
nodejs
dependenciesnpm install
- Start the frontend by running the following command
- Windows
set DEBUG=kcapp:* & npm start
- Linux / OSX
# logging to stdout DEBUG=kcapp:* npm start # or logs redirected to file DEBUG=kcapp:* npm start &>> "log/kcapp.log"
- Windows
- Pull latest changes
git pull
- Install all new
nodejs
dependenciesnpm install
Frontend depends on the kcapp-api for fetching data from the database. Curently this is always running on port localhost:8001
, but this can be changed locally be modifying this line in app.js
if the api
is running on another host or port
app.locals.kcapp.api = 'http://localhost:8001';