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
npm install onecompileman-angular4-cli![N|Solid]()
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])
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
Onecompileman-Angular4-CLI requires Node.js v8.8+ to run.
``sh`
$ npm install -g onecompileman-angular4-cliCommands
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.
`sh``
$ ocm generate --swagger swagger.json --version 6 --api users //File path relative to the path you are accessing the command
This library is created by Stephen Vinuya, because of his laziness he created a library that creates the codes for him.
