Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 4a4d46a

Browse files
committed
Merge pull request #14 from Microsoft/angular2Sample
Initial version of Angular2/TypeScript sample
2 parents 710c81a + 6e20189 commit 4a4d46a

File tree

15 files changed

+31178
-0
lines changed

15 files changed

+31178
-0
lines changed

angular2/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
todo.js
2+
node_modules

angular2/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
**Fetch dependencies:**
2+
```
3+
npm install
4+
```
5+
6+
**Build and run (combines 'build' and 'run server' commands using the default port 8080)**
7+
```
8+
npm start
9+
```
10+
11+
**Build**
12+
```
13+
node node_modules/typescript/bin/tsc.js
14+
```
15+
16+
**Run server**
17+
```
18+
node node_modules/http-server/bin/http-server -p 8080
19+
```
20+
21+
'-p' sets the port to use, default port is 8080. If it is taken pick any port that is free.
22+
After server is started open 'localhost:8080' in a browser.

0 commit comments

Comments
 (0)