onecompileman-angular4-cli

3.14.11 • Public • Published

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

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.

N|Solid

Package Sidebar

Install

npm i onecompileman-angular4-cli

Weekly Downloads

2

Version

3.14.11

License

ISC

Unpacked Size

415 kB

Total Files

46

Last publish

Collaborators

  • onecompileman