handlebars.nodejs.README.mustache Maven / Gradle / Ivy
# Swagger generated server
## Overview
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
{{^googleCloudFunctions}}
### Running the server
To run the server, run:
```
npm start
```
To view the Swagger UI interface:
```
open http://localhost:{{serverPort}}/docs
```
{{/googleCloudFunctions}}
{{#googleCloudFunctions}}
### Deploying the function
To deploy this module into Google Cloud Functions, you will have to use Google Cloud SDK commandline tool.
See [Google Cloud Functions quick start guide](https://cloud.google.com/functions/docs/quickstart) and [Deploying Cloud Functions](https://cloud.google.com/functions/docs/deploying/) for the details.
{{/googleCloudFunctions}}
This project leverages the mega-awesome [swagger-tools](https://github.com/apigee-127/swagger-tools) middleware which does most all the work.