Skip to content

Commit 961cbb5

Browse files
committed
nodejs-server: Added npm start scripts on package.json + update README
1 parent 5095fe1 commit 961cbb5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/swagger-codegen/src/main/resources/nodejs/README.mustache

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:

modules/swagger-codegen/src/main/resources/nodejs/package.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "{{appVersion}}",
44
"description": "{{{appDescription}}}",
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)