Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# ng-conf-2016 Hackathon Starter Project

For the installation and update of npm and node click <a href="https://github.com/attribesolution/ng-conf-2016-hackathon-app/wiki/npm-&-node-Installation-or-update">here</a>
### Steps:

```bash
$ git clone https://github.com/attribesolution/ng-conf-2016-hackathon-app.git
$ cd ng-conf-2016-hackathon-app/ or 'path to ng-conf-2016-hackathon-app folder'
$ npm install
$ npm run start
```
45 changes: 45 additions & 0 deletions npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@3.8.9
3 info using node@v6.0.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle a2-countries-and-capitals@1.0.0~prestart: a2-countries-and-capitals@1.0.0
6 silly lifecycle a2-countries-and-capitals@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle a2-countries-and-capitals@1.0.0~start: a2-countries-and-capitals@1.0.0
8 verbose lifecycle a2-countries-and-capitals@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle a2-countries-and-capitals@1.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/sarwan/ng-conf-2016-hackathon-app/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle a2-countries-and-capitals@1.0.0~start: CWD: /home/sarwan/ng-conf-2016-hackathon-app
11 silly lifecycle a2-countries-and-capitals@1.0.0~start: Args: [ '-c', 'tsc && concurrently "npm run tsc:w" "npm run lite" ' ]
12 silly lifecycle a2-countries-and-capitals@1.0.0~start: Returned: code: 2 signal: null
13 info lifecycle a2-countries-and-capitals@1.0.0~start: Failed to exec start script
14 verbose stack Error: a2-countries-and-capitals@1.0.0 start: `tsc && concurrently "npm run tsc:w" "npm run lite" `
14 verbose stack Exit status 2
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:245:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:850:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid a2-countries-and-capitals@1.0.0
16 verbose cwd /home/sarwan/ng-conf-2016-hackathon-app
17 error Linux 3.13.0-65-generic
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
19 error node v6.0.0
20 error npm v3.8.9
21 error code ELIFECYCLE
22 error a2-countries-and-capitals@1.0.0 start: `tsc && concurrently "npm run tsc:w" "npm run lite" `
22 error Exit status 2
23 error Failed at the a2-countries-and-capitals@1.0.0 start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the a2-countries-and-capitals package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error tsc && concurrently "npm run tsc:w" "npm run lite"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs a2-countries-and-capitals
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls a2-countries-and-capitals
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
},
"homepage": "https://github.com/mohuk/a2-countries-and-capitals#readme",
"dependencies": {
"angular2": "2.0.0-beta.17",
"es6-shim": "0.35.0",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.7",
"angular2": "^2.0.0-beta.17",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.0-beta.7",
"systemjs": "0.19.26",
"zone.js": "0.6.12"
"zone.js": "^0.6.12"
},
"devDependencies": {
"concurrently": "2.0.0",
"lite-server": "2.2.0",
"typescript": "1.8.10",
"typings": "0.8.1"
"concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings": "^0.8.1"
}
}
15 changes: 15 additions & 0 deletions src/Button.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {bootstrap} from 'angular2/platform/browser';
import {Component} from 'angular2/core';

@Component({
selector: 'myButton',
template: `
<div align= "center">
<button type="button" align="right">Click Me!</button>
</div>
`,
styleUrls:['src/center.css']
})
export class Button {}


13 changes: 10 additions & 3 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import {bootstrap} from 'angular2/platform/browser';
import {Component} from 'angular2/core';

import {Paragraph} from './header'
import {Button} from './Button'
import {Listing} from './listing'

@Component({
directives : [Paragraph, Button,Listing],
selector: 'app',
template: `
<h1>Countries and Capitals</h1>
`,
<h1 align="center">Countries and Capitals</h1>
<hr>
<myParagraph></myParagraph>
<myButton></myButton>
<myListing></myListing>
` ,
})
export class App {}

Expand Down
6 changes: 6 additions & 0 deletions src/center.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


.container {
width: 970px;
margin: 0 auto;
}
12 changes: 12 additions & 0 deletions src/header.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {bootstrap} from 'angular2/platform/browser';
import {Component} from 'angular2/core';


@Component({
selector: 'myParagraph',
templateUrl: 'src/myParagraph.html',
styleUrls:['src/center.css']
})
export class Paragraph {}


11 changes: 11 additions & 0 deletions src/listing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {bootstrap} from 'angular2/platform/browser';
import {Component} from 'angular2/core';


@Component({
selector: 'myListing',
templateUrl: 'src/table.html'
})
export class Listing {}


3 changes: 3 additions & 0 deletions src/myParagraph.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="container">
<p align="centre" class="wrap">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</div>
10 changes: 10 additions & 0 deletions src/table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<table style="width:100%" border="4" >
<tr>
<td>Name</td>
<td>Country Code</td>
<td>Capital</td>
<td>Area in km2</td>
<td>Population</td>
<td>Continent</td>
</tr>
</table>
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es6",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
Expand Down