onecompileman-angular4-cli
v3.14.11
Published
This library is created for generating a scalfolding for angular with stores[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[C[C[C[C[C[C[C[C[C[C[C[C, services, models, transformers
Downloads
20
Maintainers
Readme
Onecompileman-Angular4-CLI
Onecompileman-angular4-cli is a Node.js CLI library for Angular that converts OAS or Open Api Specification JSON file generated by an API which has Swagger Integration into:
- Models - Typescript class that defines structure of object.
- Services - Asynchronous services that make requests to
API
endpoints (using [ngx-restangular])
Tech
Onecompileman-Angular4-CLI uses a number of open source projects to work properly:
- node.js - evented I/O for the backend
- minimist -
node.js
argument parser - clui - command-line interfaces
- figlet - ASCII text art
- chalk - colorize the output
Installation
Onecompileman-Angular4-CLI requires Node.js v8.8+ to run.
$ npm install -g onecompileman-angular4-cli
Commands
You can generate your services and models for your angular app in just 3 or more seconds with the following command
, it is suggested to have the OAS swagger.json file inside the root
directory of the app.
$ ocm generate --swagger swagger.json --version 6 --api users //File path relative to the path you are accessing the command
About
This library is created by Stephen Vinuya, because of his laziness he created a library that creates the codes for him.