This is the gapminder tools page
Code for page: http://gapminder.org/tools
npm i -g webpack webpack-dev-server
git clone git@github.com:Gapminder/gapminder-tools-vizabi.git
npm start
http://localhost:3001
Local Environment
WS_HOST=localhost
WS_PORT=3000
1.1 npm run local:build
client/dist
directory1.2 npm run local
localhost:3001
1.3 npm run local:hot
localhost:8080
Development Environment
WS_HOST=https://waffle-server-dev.gapminderdev.org
2.1 npm run dev:build
client/dist
directory2.2 npm run dev
localhost:3001
2.3 npm run dev:forever
localhost:3001
via forever2.4 npm run dev:docker
localhost:3001
Stage Environment
WS_HOST=https://waffle-server-stage.gapminderdev.org
3.1 npm run stage:build
client/dist
directory3.2 npm run stage
localhost:3001
3.3 npm run stage:forever
localhost:3001
via foreverProduction Environment
WS_HOST=https://waffle-server.gapminderdev.org
4.1 npm run prod:build
client/dist
directory4.2 npm run prod
localhost:3001
4.3 npm run prod:forever
localhost:3001
via foreverServer Start
client/dist
directory5.1 npm run serve
localhost:3001
5.2 npm run serve-forever
localhost:3001
via foreverSimple Start
npm start
client/dist
directory using Development Environmentlocalhost:3001
waffle-server env host
|| http://localhost
waffle-server env port
|| 3000
Example as WS_HOST and WS_PORT could be setup:
WS_HOST=http://localhost WS_PORT=3000 npm run local
Default WaffleServer URL is https://waffle-server-stage.gapminderdev.org
is used in the Vizabi library: vizabi-gapminder.js file
npm run dev:docker
# development *BEWARE!!! This environment you use only on your's own responsibility*
- HOST_URL: `https://waffle-server-dev.gapminderdev.org`
- PORT: null
# stage
- HOST_URL: `https://waffle-server-stage.gapminderdev.org`
- PORT: null
# production (live)
- HOST_URL: `https://waffle-server.gapminderdev.org`
- PORT: null
npm i vizabi@latest -S
# development - here you have the latest version. Sometimes it is updated many times an hour.
- `http://tools-dev.gapminderdev.org/`
# stage - released once every week, usually
- `https://tools-stage.gapminderdev.org/`
# production (live)
- `http://www.gapminder.org/tools/`