Merge pull request #3212 from pjmolina/master

nodejs-server: Added npm start scripts on package.json + update README
This commit is contained in:
wing328 2016-06-25 00:17:44 +08:00 committed by GitHub
commit 89ab384d75
2 changed files with 6 additions and 3 deletions

View File

@ -8,11 +8,10 @@ This example uses the [expressjs](http://expressjs.com/) framework. To see how
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
### Running the server
To run the server, follow these simple steps:
To run the server, run:
```
npm install
node .
npm start
```
To view the Swagger UI interface:

View File

@ -3,6 +3,10 @@
"version": "{{appVersion}}",
"description": "{{{appDescription}}}",
"main": "index.js",
"scripts": {
"prestart": "npm install",
"start": "node index.js"
},
"keywords": [
"swagger"
],