generator-jhipster-pages
v2.0.4
Published
create pages : client only (static), or client and server side. Load data from server, Save data to server, form, table...
Downloads
60
Maintainers
Readme
generator-jhipster-pages
JHipster module, create pages : client only (static), or client and server side. Load data from server, Save data to server, form, table...
Introduction
This is a JHipster module, that is meant to be used in a JHipster application.
Prerequisites
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
Compatibility
Now it's works for angularjs and angular 4. I haven't tested with micro service or any not-sql based project (cassandra, mongodb, elasticsearch, ...).
Installation
With Yarn
To install this module:
yarn global add generator-jhipster-pages
To update this module:
yarn global upgrade generator-jhipster-pages
With NPM
To install this module:
npm install -g generator-jhipster-pages
To update this module:
npm update -g generator-jhipster-pages
Usage
Launch
Launch generator and it will ask for everything it needs
yo jhipster-pages
if you want to regenerate some existing pages you can do it by page set with the following command line :
yo jhipster-pages regenerate
Core Concepts
Each page belongs to a page set. A page set is defined by a name. A Page have a name, a glyphicon, and a type. The following types are supported:
- client only generate a simple static page :
- empty html page
- simple js controller
- Load data from server generate
- empty html page
- js controller
- js read service
- java get web service
- Save data to server generate
- empty html page
- js controller
- js write service
- java post web service
- Load and Save data to server generate
- empty html page
- js controller
- js read and write service
- java get and post web service
- Form generate
- form html page
- js controller
- js write service
- java post web service
- post argument object
- Table generate
- table html page
- js controller
- js read service
- java get web service
- get returned object
Road Map
Here is the list of types to do
- Workflow generate
- multiple step html pages (form) with link to previous and next steps
- multiple step js controllers
- js service with init get and final write method
- java web service with get and post
License
Apache License v2.0 © Guillaume DUFOUR