Generator for writing a service/API for Akana Platform
A Yeoman generator which scaffolds the code to create a service that can be hosted on the Akana platform along with an OSGi feature bundle for deploying on the Akana platform.
First, install Yeoman and generator-akana-service using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-akana-service
Then generate your new project:
yo akana-service
Create symlink to the lib
folder under your Policy Manager installation directory.
ln -s $AKANA_HOME/sm80/lib/ lib
mvn eclipse:eclipse
cd build
ant
Build artifact: OSGi Repository
Artifact: /build/dist/$PROJECT_NAME-$VERSION.zip
Take the built ./build/dist/$PROJECT_NAME-$VERSION.zip
file and unzip it under the $AKANA_HOME/sm80/lib
folder. Use Akana container's Admin console to install the newly created 'Plugin'.
See Authoring Yeoman Generators as well as the generator-generator for more info.
For local development usage, to allow yo
to look locally rather than npm:
- clone this repo
- cd
generator-akana-service
npm link
Now yo
will look for the cloned repo, local copy, of the generator.
If you don't know where npm keeps its files, try npm config get prefix
+ /lib/node_modules
.
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
© 2015 Akana
Apache 2.0 License