@studiowebux/generator
v5.0.0
Published
webux lab template generator
Downloads
7
Readme
Webux Lab API Generator
This project allows to generate
- Empty application
- CRUD module
- Standalone resource
- Standalone model
Installation
Linux / Windows / Mac
Install the package globally,
npm install -g @studiowebux/generator
Install the package
npm install @studiowebux/generator
cd node_modules/@studiowebux/generator
Usage
The Module is installed globally
Using the CLI, launch
webux generate app
or
webux generate module
or
webux generate resource
or
webux generate model
Answer the questions to get an app, a module, a model or a resource.
The Module isn't installed globally
Using the CLI in the webux-generator project directory, launch
How to generate an empty appnpm run generate-app
How to generate an empty modulenpm run generate-module
How to generate an empty resourcenpm run generate-resource
How to generate an empty modelnpm run generate-model
Customization
Inside the template directories, you can edit everything to get what you need.
The structure file in both folder contains the project architecture.
Known Bugs / Limitations
- There is a limitation when creating new resources with the generator, if their is multiple resources under the same folder, it will create new path for every resources and causes an invalid routing configuration
Unfortunately, the solution is to edit the config/routes.js file manually.
License
SEE LICENSE IN license.txt