A Kin & Fight for the Future website
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate
For detailed explanation on how things work, checkout Nuxt.js docs.
This site is hosted using GitHub Pages and Cloudflare. When changes are pushed to master, the site is generated by CircleCI and pushed to the gh-pages branch. You can see how it works here.
If you have write access to this GitHub project, you can manually deploy the site like this:
npm run generate
npm run deploy
The leaderboard is generated by this script whenever npm run generate
is run. We have a cron task set up that triggers a new CircleCI build every few minutes to update the site.