Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmvilas/swagger-node-codegen-cli
CLI for swagger-node-codegen. Use your API Swagger definition to generate the Node.js ES6-compliant code of your API.
https://github.com/fmvilas/swagger-node-codegen-cli
Last synced: about 2 months ago
JSON representation
CLI for swagger-node-codegen. Use your API Swagger definition to generate the Node.js ES6-compliant code of your API.
- Host: GitHub
- URL: https://github.com/fmvilas/swagger-node-codegen-cli
- Owner: fmvilas
- Created: 2015-11-22T18:43:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-20T00:22:48.000Z (about 7 years ago)
- Last Synced: 2024-10-11T03:44:18.726Z (3 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEPRECATED: Use [swagger-node-codegen](https://github.com/fmvilas/swagger-node-codegen) instead.
---
# CLI for Swagger ES6 Node.js code generator
## Description
CLI for [swagger-node-codegen](https://github.com/fmvilas/swagger-node-codegen). Use your API Swagger definition to generate the Node.js ES6-compliant code of your API.
The generated code features:
* ES6
* Gulp
* Makefile
* ESLint
* YAML config file
* Express## How to use it?
```sh
npm install swagger-node-codegen-cli -g
```Syntax:
```sh
snc [path/to/swagger/file] [path/to/target/directory]
```> Swagger file can be either JSON or YAML.
Example:
```sh
snc ~/my-api.json ~/my-api
```If none of the arguments above are provided then you'll be prompted for them:
![](images/snc.png)
It will generate a directory structure like this:
```
.editorconfig
.eslintrc
Makefile
README.md
config
common.yml
gulpfile.js
package.json
src
api
routes
users.js
products.js
services
users.js
products.js
index.js
bin
www
lib
config.js
logger.js
```## Author
Francisco Méndez Vilas ([[email protected]](mailto:[email protected]))
[www.fmvilas.com](http://www.fmvilas.com)