@studiowebux/generator

5.0.0 • Public • Published

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 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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @studiowebux/generator

Weekly Downloads

198

Version

5.0.0

License

SEE LICENSE IN license.txt

Unpacked Size

169 kB

Total Files

149

Last publish

Collaborators

  • tgingras