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
- Download Code
- Run java -jar .\swagger-codegen-cli.jar generate -i url/to/swagger.json -l nodejs-server -o .\server -t .\templates
- cf login
- cf push
- Download Source for Swagger Codegen 2.2.3 here https://github.com/swagger-api/swagger-codegen/releases/tag/v2.2.3
- 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
- Compile the project using Maven
- Execute the Jar
- Upload to Blumix using cf login and cf push