Skip to content

Commit 4eb1565

Browse files
committed
Update petstore sample for changes on PR #3212
1 parent 961cbb5 commit 4eb1565

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

samples/server/petstore/nodejs/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ This example uses the [expressjs](http://expressjs.com/) framework. To see how
88
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
99

1010
### Running the server
11-
To run the server, follow these simple steps:
11+
To run the server, run:
1212

1313
```
14-
npm install
15-
node .
14+
npm start
1615
```
1716

1817
To view the Swagger UI interface:

samples/server/petstore/nodejs/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "1.0.0",
44
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
55
"main": "index.js",
6+
"scripts": {
7+
"prestart": "npm install",
8+
"start": "node index.js"
9+
},
610
"keywords": [
711
"swagger"
812
],

0 commit comments

Comments
 (0)