Skip to content

akanainc/generator-akana-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generator-akana-service NPM version Build Status Dependency Status

Generator for writing a service/API for Akana Platform

Description

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.

Installation

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

Build

Requirements

Steps

Create symlink to the lib folder under your Policy Manager installation directory.

ln -s $AKANA_HOME/sm80/lib/ lib

To generate an Eclipse project

mvn eclipse:eclipse

To build

cd build
ant

Build artifact: OSGi Repository Artifact: /build/dist/$PROJECT_NAME-$VERSION.zip

To deploy the build

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'.

Development

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.

Getting To Know Yeoman

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.

License

© 2015 Akana

Apache 2.0 License

About

Yeoman Generator for generating PM deployable APIs/Services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published