1.0.2 • Published 4 years ago
hemera-generator v1.0.2
hemera-generator
Command line tools for Hemera. Generate, write and run an application with one single command!
Install
npm install hemera-generator --global
Usage
hemera-generator
offers a single command line interface for your hemera
project:
$ hemera
Will print an help:
Hemera command line interface, available commands are:
* generate generate a new project
* plugin generate a new plugin
* version the current hemera-generator version
* help help about commands
Launch 'hemera help [command]' to know more about the commands.
generate
hemera-generator
can also help with generating some project of your next hemera application. To use it:
hemera generate <yourapp>
cd yourapp
npm install
The sample code offers you four npm tasks:
npm start
- starts the applicationnpm test
- runs the tests
You will find three different folders:
plugins
: the folder where you will place all your custom pluginsservices
: the folder where you will declare all your endpointstest
: the folder where you will declare all your test
Finally there will be an app.js
file, which is your entry point.
plugin
Create a basic plugin.
$ hemera plugin <folder>/<name>