Website for 2030Watch
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
components
data
layouts
middleware
pages
plugins
static
store
.editorconfig
.eslintrc.js
.gitignore
.nvmrc
.travis.yml
FONT_LICENSE
LICENSE
README.md
nuxt.config.js
package-lock.json
package.json

README.md

2030Watch

Build Status

Setup

Requirements

Node.js and npm (included in Node.js)

Build

# Install dependencies
npm install

# Generate data files and move them into the data folder
node data/load-data.js && mv indiNav.json sdgs.json indicators.json ./data/

# Serve with hot reload at localhost:3010
npm run dev

Automatic deployment

After pushing/merging your feature branch into the master branch Travis CI builds the static files and deploys them to GitHub Pages. For this Travis executes the followings steps:

# Load and assemble the current data
node data/load-data.js

# Move the generated files into the data folder
mv indiNav.json sdgs.json indicators.json ./data/

# Generate the static files
npm run generate:gh-pages

Manual deployment (not done anymore)

Generate the dist folder for publishing with GitHub Pages

npm run generate:gh-pages

Move and push the generated files and folders to the gh-pages branch