Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

fightforthefuture/defendcrypto.org

Repository files navigation

DefendCrypto.org

A Kin & Fight for the Future website

Build Setup

# 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.

Deploying Changes

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

Leaderboard

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.