A sails hook to integrate your Sails app into an Apache Ignite grid with the hugheba-graaljs-ignite module.
This hook only works for Sails apps running under GraalVM/GraalJS implementation of node.
From your Sails app:
$ npm install sails-hook-ignite --save
Create a new config file in your project config/ignite.js
with the contents:
module.exports.ignite = {
}
Modify the configuration properties in accordance to the underlying hugheba-graaljs-ignite module.
Access the configured IgniteBridge
.
var igniteBridge = sails.hooks.ignite.get();
The git repo contains an example Sails app running sails-hook-ignite
.
To boot the example app, run the following command:
$> ./gradlew module-sails-example-app:runExampleApp
Once booted you can browse to http://localhost:1337 in your web browser.