Download OpenGrid code
git clone https://github.com/Chicago/opengrid.git
Install PhantomJS by following the instructions on this page.
Install npm, if you haven't yet.
Once installed, download and install the necessary npm modules by running the install command.
cd opengrid npm install
EnvSettings.js overrides default settings specified in
Config.js (build system can be configured later to pull a different copy of
EnvSettings.js depending on the application environment i.e. Test, Production, etc). At a minimum, the service endpoint setting in
EnvSettings.js must be edited to point to the correct location of the OpenGrid-compliant service.
For the build procedures of a template implementation of the OpenGrid Service Layer, please refer to this link.
Run Gulp Tasks
The debug task creates a debug build under the ./debug folder. The debug build injects local file references into the main HTML page for debugging purposes.
The test task runs all the Mocha unit tests.
Deploy the files under the ./dist folder to your web server. For quick preview using Node.js, you can use the npm module node-http-server.
Note: As of this writing, OpenGrid has an open issue for supporting cross-domain service calls. Currently, you'll have to open the application in Chrome with the --disable-web-security parameter if the service lives under a different domain.