Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,29 @@
Simple app that consumes Angular Material 2 components. Built with the `angular-cli`.

See it live: https://material2-app.firebaseapp.com/

### Pre-requisite
# globally install angular-cli
$ npm install -g angular-cli

### Installation

```bash
# clone our repo
$ git clone https://github.com/jelbourn/material2-app.git my-app

# change directory to your app
$ cd my-app

# install the dependencies with npm
$ npm install

$ npm install typescript @angular/compiler-cli @angular/platform-server --save

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are already in the package.json, npm install should take care of these


# run ngc compiler
$ ./node_modules/.bin/ngc -p src/tsconfig.json

# start the server
$ npm start
```
go to [http://localhost:4200](http://localhost:4200) in your browser.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
"dependencies": {
"@angular/common": "^2.0.0",
"@angular/compiler": "^2.0.0",
"@angular/compiler-cli": "^0.6.4",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are already listed in the devDependencies

"@angular/core": "^2.0.0",
"@angular/forms": "^2.0.0",
"@angular/http": "^2.0.0",
"@angular/material": "2.0.0-alpha.9-3",
"@angular/platform-browser": "^2.0.0",
"@angular/platform-browser-dynamic": "^2.0.0",
"@angular/material": "2.0.0-alpha.9-3",
"@angular/platform-server": "^2.0.2",
"@angular/router": "^3.0.0",
"core-js": "^2.4.0",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"typescript": "^2.0.3",
"zone.js": "^0.6.21"
},
"devDependencies": {
Expand Down