Skip to content

Commit 906cd39

Browse files
committed
feat: Removed web-server.js script (from angular-seed).
chore: Updated doc to show alternative web serving way with node/npx.
1 parent 506f77f commit 906cd39

File tree

3 files changed

+4
-249
lines changed

3 files changed

+4
-249
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ $ npm install
6060
You can pick one of these options:
6161

6262
1. serve this repository with a webserver of-your-choice
63-
2. having installed node.js, you can run a script starting a simple web server:
63+
2. having installed node/npm (> 5.2.1), you can start a simple web server with `npx`:
6464

6565
```
66-
$ ./scripts/web-server.js
66+
$ npx serve app
6767
```
6868

69-
Then navigate your browser to `http://localhost:<port>/app/index.html` to see the app running in
70-
your browser.
69+
Then open `http://localhost:3000/` in your browser.
7170

7271
### Run tests
7372

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"url": "git://github.com/atufkas/angular-openweather-app.git"
1313
},
1414
"scripts": {
15-
"start": "node scripts/web-server.js",
15+
"start": "npx serve app",
1616
"test": "scripts/all-tests.sh"
1717
},
1818
"devDependencies": {

scripts/web-server.js

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)