Skip to content

tmforum/tmfswaggergen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Node.js server for Bluemix

Overview

This bundle allows a creation of a Bluemix ready node.js server, created only from a swagger file. The contained jar and the templates are sufficient for a server creation. For compiling the JAR on its own, the Java files that must be substituted in the original framework are added in the Java directory. It is based on Swagger Codegen: https://github.com/swagger-api/swagger-codegen

Step for Server Creation

  1. Download Code
  2. Run java -jar .\swagger-codegen-cli.jar generate -i url/to/swagger.json -l nodejs-server -o .\server -t .\templates
  3. cf login
  4. cf push

Create Jar

  1. Download Source for Swagger Codegen 2.2.3 here https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.3
  2. Substitute the Files in the project (.\swagger-codegen-2.2.3\modules\swagger-codegen\src\main\java\io\swagger\codegen\ and .\swagger-codegen-2.2.3\modules\swagger-codegen\src\main\java\io\swagger\codegen\languages) with the ones in the Java folder
  3. Compile the project using Maven
  4. Execute the Jar
  5. Upload to Blumix using cf login and cf push

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.8%
  • HTML 8.2%