This project allows to generate
- Empty application
- CRUD module
- Standalone resource
- Standalone model
Install the package globally,
npm install -g @studiowebux/generator
Install the package
npm install @studiowebux/generator
cd node_modules/@studiowebux/generator
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.
Using the CLI in the webux-generator project directory, launch
How to generate an empty app
npm run generate-app
How to generate an empty module
npm run generate-module
How to generate an empty resource
npm run generate-resource
How to generate an empty model
npm run generate-model
Inside the template directories, you can edit everything to get what you need.
The structure file in both folder contains the project architecture.
- 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.
SEE LICENSE IN license.txt