Skip to content

Commit 1fcc48e

Browse files
authored
Merge pull request #28 from ansrivas/develop
Develop
2 parents c7df69b + a9c175a commit 1fcc48e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88

99
Simple angular2 app with python-flask backend (for learning angular2)
1010

11+
## Dockerized version:
12+
---
13+
14+
The current build is using `nginx` to serve static files.
15+
16+
1. In project root directory execute `docker-compose up`
17+
18+
2. Navigate to `http://localhost:3000` and login using `admin:admin`
19+
20+
1121
## Info
1222
---
1323

@@ -61,12 +71,3 @@ Simple angular2 app with python-flask backend (for learning angular2)
6171
npm install
6272
npm run build:prod
6373
```
64-
65-
## Docker support:
66-
---
67-
68-
The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose`
69-
70-
1. In project root directory execute `docker-compose up`
71-
72-
2. Navigate to `http://localhost:3000` and login using `admin:admin`

front/src/app/authentication/authentication.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export class AuthenticationService {
7979
let response = 'response';
8080
let tokenString = 'jwt';
8181
let token = body[tokenString];
82+
//TODO: Decode token and get expiry time from here, someone has to implement this. :(
8283
let expiry = new Date(body['exp']);
8384
let maxTokenExpiryTime = expiry.getTime();
8485
localStorage.setItem('token', token);

0 commit comments

Comments
 (0)