Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.21 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.21 KB

swagger-codegen-router-template

A template for swagger-codegen that generates a Node.js project that validates and routes requests to a url.

Environment

Development Workflow

1. Clone the repository

git clone https://github.com/echelon-solutions/swagger-codegen-router-template.git

2. Add an Open API (Swagger) specification file

# Change into the repository directory
cd swagger-codegen-router-template

# Add the swagger specification file
cp <some-directory>/swagger.yaml ./src/main/resources/swagger.yaml

3. Generate the Node.js router API project

# Bring up the Vagrant build environment
vagrant up

# Login to the environment
vagrant ssh 

# Change into the project directory
# Vagrant syncs the /project directory with your host machine
cd /project

# Run Maven to build and output the project
# Output can be found in /project/target/generated-sources/swagger/
mvn clean package

Support

Please reach out to support@echelon.solutions with any questions, concerns, or suggestions.

Also, feel free to clone/fork this project and suggest changes and updates via a "Pull Request".