xena
v1.0.0-beta.3
Published
eXtended Elasticsearch Node Angular - Create applications using Hapi, Elasticsearch, Node.js, AngularJS
Downloads
10
Maintainers
Readme
XENA
XENA : eXtended Elasticsearch Node.js AngularJS
MEAN is great. But MongoDB is not the only database and Express is not the only stable framework for Node.js.
Enters...XENA (awesome name, right? very powerful)
The eXtended is for Hapi (HENA didn't sound so good and wasn't as cool as XENA)
Installation
$ npm install -g xena
Usage
All options for the following commands are optional, if you don't input them, you will be asked during the execution of the command.
Initialization
To initialize a XENA application:
$ xena init [name]
Mapping
To create a new mapping for an elasticsearch type:
$ xena mapping [name] [fields...]
The fields option is a list of all the fields you wish to push in your mapping, the syntax is name:type
You can find the list of accepted types here.
Here is an exemple :
$ xena mapping user username:string email:string dob:date
Endpoint
To create an endpoint in the backend API:
$ xena endpoint [name]