forked from loafle/openapi-generator-original
Merge pull request #3212 from pjmolina/master
nodejs-server: Added npm start scripts on package.json + update README
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
"version": "{{appVersion}}",
|
||||
"description": "{{{appDescription}}}",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prestart": "npm install",
|
||||
"start": "node index.js"
|
||||
},
|
||||
"keywords": [
|
||||
"swagger"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user