Skip to content

Commit 52018bf

Browse files
committed
chore(start): added npm command to start server
1 parent 9aa60d3 commit 52018bf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ Clone this repository as well as [the server](https://github.com/auth0/nodejs-jw
1414

1515
First, run the server app in the port `3001`.
1616

17-
Then, run `npm install` on this project and run `npm startwatch` to start the app. Then just navigate to [http://localhost:3000](http://localhost:3000) :boom:
18-
17+
Then, run `npm install` on this project and run `npm start` to start the app. Then just navigate to [http://localhost:3000](http://localhost:3000) :boom:
18+
Use `npm run server` to run API server.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "This is a sample that shows how to add authentication to an Angular 2 (ng2) app",
55
"main": "",
66
"scripts": {
7-
"start": "webpack-dev-server --inline -d --colors --display-error-details --display-cached --port 3000",
7+
"server": "cd backend && npm i && node server.js",
8+
"front": "webpack-dev-server --inline -d --colors --display-error-details --display-cached --port 3000",
9+
"start": "npm run front",
810
"test": "echo \"Error: no test specified\" && exit 1"
911
},
1012
"repository": {

0 commit comments

Comments
 (0)