This repo allows the development of d3 charts against FileMan.
It also contains a config file to get a stack up and running quickly in Gitpod
To run a Gitpod with this repo:
-
Create a free/paid Gitpod account - https://www.gitpod.io/
-
Log into the account
-
Open a new browser tab and add gitpod.io/#https://github.com/RamSailopal/FileManjs-gitpod to the address - This will create a new Gitpod cloud instance.
-
Due to blocked cross origin requests, ports 8080 and 9100 need to be made public in Gitpod.
-
Due to blocked cross origin requests, A CORS browser add-on also needs to be added and enabled https://addons.mozilla.org/en-GB/firefox/addon/cors-everywhere/
https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino?hl=en
With the firefox addon, ensure that the plugin is enabled in the browser header as in the image below:
This contrasts to when CORS is disabled as in the image below:
-
Open a browser session on port 8080 (the globe icon) and this will display a list of d3 charts generated from FileMan
Code is created in the htdocs directory when changes are made, execute the Run Code addon (play button). Changes should then be reflected in the browser running against server port 8080.
cd compose
export NODE_FMQLADD="http://<ipaddressofdockerserver>:9100"
docker-compose up