Skip to content

Commit 691611e

Browse files
author
darpan.pathak@above-inc.com
committed
changed static api path
1 parent 566f5e8 commit 691611e

File tree

7 files changed

+52
-4
lines changed

7 files changed

+52
-4
lines changed

client/app/services/authentication.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class AuthenticationService {
1616

1717
login(user: User) {
1818
let body = JSON.stringify(user);
19-
this.http.post('http://localhost:3002/api/auth/login', body, { headers: contentHeaders })
19+
this.http.post('/api/auth/login', body, { headers: contentHeaders })
2020
.subscribe(
2121
response => {
2222
localStorage.setItem('token', JSON.stringify(response.json().token));

client/npm-debug.log

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
3+
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
4+
1 verbose cli 'run',
5+
1 verbose cli 'tsc:w' ]
6+
2 info using npm@3.10.3
7+
3 info using node@v6.6.0
8+
4 verbose run-script [ 'pretsc:w', 'tsc:w', 'posttsc:w' ]
9+
5 info lifecycle angularjs2app@1.0.0~pretsc:w: angularjs2app@1.0.0
10+
6 silly lifecycle angularjs2app@1.0.0~pretsc:w: no script for pretsc:w, continuing
11+
7 info lifecycle angularjs2app@1.0.0~tsc:w: angularjs2app@1.0.0
12+
8 verbose lifecycle angularjs2app@1.0.0~tsc:w: unsafe-perm in lifecycle true
13+
9 verbose lifecycle angularjs2app@1.0.0~tsc:w: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\Projects\darpan_projects\GITHUB\angular-node-template\client\node_modules\.bin;C:\Program Files\nodejs;C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\Projects\darpan_projects\GITHUB\angular-node-template\client\node_modules\.bin;C:\Program Files\nodejs;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\Git\cmd;;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\darpan\AppData\Roaming\npm
14+
10 verbose lifecycle angularjs2app@1.0.0~tsc:w: CWD: D:\Projects\darpan_projects\GITHUB\angular-node-template\client
15+
11 silly lifecycle angularjs2app@1.0.0~tsc:w: Args: [ '/d /s /c', 'tsc -w' ]
16+
12 silly lifecycle angularjs2app@1.0.0~tsc:w: Returned: code: 3221225786 signal: null
17+
13 info lifecycle angularjs2app@1.0.0~tsc:w: Failed to exec tsc:w script
18+
14 verbose stack Error: angularjs2app@1.0.0 tsc:w: `tsc -w`
19+
14 verbose stack Exit status 3221225786
20+
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:242:16)
21+
14 verbose stack at emitTwo (events.js:106:13)
22+
14 verbose stack at EventEmitter.emit (events.js:191:7)
23+
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
24+
14 verbose stack at emitTwo (events.js:106:13)
25+
14 verbose stack at ChildProcess.emit (events.js:191:7)
26+
14 verbose stack at maybeClose (internal/child_process.js:877:16)
27+
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
28+
15 verbose pkgid angularjs2app@1.0.0
29+
16 verbose cwd D:\Projects\darpan_projects\GITHUB\angular-node-template\client
30+
17 error Windows_NT 6.1.7601
31+
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "tsc:w"
32+
19 error node v6.6.0
33+
20 error npm v3.10.3
34+
21 error code ELIFECYCLE
35+
22 error angularjs2app@1.0.0 tsc:w: `tsc -w`
36+
22 error Exit status 3221225786
37+
23 error Failed at the angularjs2app@1.0.0 tsc:w script 'tsc -w'.
38+
23 error Make sure you have the latest version of node.js and npm installed.
39+
23 error If you do, this is most likely a problem with the angularjs2app package,
40+
23 error not with npm itself.
41+
23 error Tell the author that this fails on your system:
42+
23 error tsc -w
43+
23 error You can get information on how to open an issue for this project with:
44+
23 error npm bugs angularjs2app
45+
23 error Or if that isn't available, you can get their info via:
46+
23 error npm owner ls angularjs2app
47+
23 error There is likely additional logging output above.
48+
24 verbose exit [ 1, true ]

client/npm-debug.log.2225458560

Whitespace-only changes.

client/npm-debug.log.3995987651

Whitespace-only changes.

public/app/services/authentication.service.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app/services/authentication.service.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/views/index.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<base href="/">
5-
<title>Angular 2 Messenger</title>
5+
<title>Angular2 with NodeJs - Darpan Pathak</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
88
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen">

0 commit comments

Comments
 (0)