Skip to content

Setting Up Development Environment

Desirree Adegunle edited this page Sep 1, 2022 · 1 revision

Setting Up Development Environment

Create host certs for https://localhost:8080 needed for https://app.powerbi.com/ live testing:

./bootstrap_host.dev.sh

MS docs: Install a certificate

Create PowerBI dev account:

  • https://powerbi.microsoft.com/en-us/ -> start free
  • pbi online account -> settings -> developers -> enable developer mode
  • in a report (ex: HR), add a Developer visuals
  • it will show a greyed component with "Can't contact visual server"

Versions

Version numbers are automatically taken from the latest git tag, and sometimes with suffix -dev.

Use environment variables to override how it is used for base docker images and/or published package versions. Read scripts to see which are used and how.

Publish

  • Update CHANGELOG.md with intended version number
  • Merge your PR and ensure CI passes
  • From main branch:
git tag X.Y.Z
git push --tags

This will create a new tag and release: https://github.com/graphistry/graphbi/releases

OS X

  • The keygen stuff might do funny keychain stuff
    • keychain: search for 'localhost' and allow all
    • may not still work in chrome, but maybe in firefox
    • or a reboot
  • If ./dc.dev.sh up fails with Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /usr/local/lib/node_modules/powerbi-visuals-tools/certs
    • In docker -> preferences -> resources -> file sharing: /usr/local/lib/node_modules
    • ... or wherever npm list -g --silent | head -1 goes