Skip to content

Commit 60ffcc8

Browse files
dependencies & readme updated
1 parent cc01444 commit 60ffcc8

File tree

5 files changed

+9865
-8036
lines changed

5 files changed

+9865
-8036
lines changed

README.md

+35-35
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
1-
# Ionic Angular Auth
1+
# :zap: Ionic Angular Auth
22

3-
App to prevent access to 'members' route if user not authorized. Authorization is via email & password converted to a JWT token instead of using a backend.
3+
* App to prevent access to 'members' route if user not authorized. Authorization is via email & password converted to a JWT token instead of using a backend.
4+
* Another great tutorial from [Simon Grimm of the IonicAcademy, Youtube video 'Building an Ionic 4 JWT Login with Tab Bar & Angular Routing'](https://www.youtube.com/watch?v=lNqXCn8KacI).
45

5-
This is another great tutorial from [Simon Grimm of the IonicAcademy, Youtube video 'Building an Ionic 4 JWT Login with Tab Bar & Angular Routing'](https://www.youtube.com/watch?v=lNqXCn8KacI).
6+
## :page_facing_up: Table of contents
67

7-
## Table of contents
8+
* [:zap: Ionic Angular Auth](#zap-ionic-angular-auth)
9+
* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)
10+
* [:books: General info](#books-general-info)
11+
* [:camera: Screenshots](#camera-screenshots)
12+
* [:signal_strength: Technologies](#signal_strength-technologies)
13+
* [:floppy_disk: Setup](#floppy_disk-setup)
14+
* [:computer: Code Examples](#computer-code-examples)
15+
* [:cool: Features](#cool-features)
16+
* [:clipboard: Status & To-do list](#clipboard-status--to-do-list)
17+
* [:clap: Inspiration](#clap-inspiration)
18+
* [:envelope: Contact](#envelope-contact)
819

9-
* [General info](#general-info)
10-
* [Screenshots](#screenshots)
11-
* [Technologies](#technologies)
12-
* [Setup](#setup)
13-
* [Features](#features)
14-
* [Status](#status)
15-
* [Inspiration](#inspiration)
16-
* [Contact](#contact)
17-
18-
## General info
20+
## :books: General info
1921

2022
* Initial screen is a login page with email and password fields. Angular 'canActivate' authguard limits access to the 'members/' route to only authorised (JWT token-bearing) users.
2123

22-
## Screenshots
24+
## :camera: Screenshots
2325

24-
![screenshot](./img/home_csv.png)
26+
![screenshot](./img/login.png)
2527

26-
## Technologies
28+
## :signal_strength: Technologies
2729

28-
* [Ionic v5.0.0](https://ionicframework.com/)
29-
* [Ionic/angular v4.7.1](https://ionicframework.com/)
30-
* [Angular v8.1.2](https://angular.io/)
31-
* [Angular RxJS Library v6.5.1](https://angular.io/guide/rx-library) Observable functions
32-
* [Angular JWT library v3.0.0](https://www.npmjs.com/package/@auth0/angular-jwt) provides an HttpInterceptor which automatically attaches a JSON Web Token to HttpClient requests. Used as a standalone JWT decoder.
33-
* [Ionic Storage v2.2.0](https://www.npmjs.com/package/@ionic/storage) key-value Storage module based on LocalForage.
30+
* [Ionic v5](https://ionicframework.com/)
31+
* [Ionic/angular v5](https://ionicframework.com/)
32+
* [Angular v10](https://angular.io/)
33+
* [Angular RxJS Library v6](https://angular.io/guide/rx-library) Observable functions
34+
* [@auth0/angular-jwt v5](https://www.npmjs.com/package/@auth0/angular-jwt) provides an HttpInterceptor which automatically attaches a JSON Web Token to HttpClient requests.
35+
* [Ionic Storage v2](https://www.npmjs.com/package/@ionic/storage) key-value Storage module based on LocalForage.
3436

35-
## Setup
37+
## :floppy_disk: Setup
3638

3739
* To start the server on _localhost://8100_ type: 'ionic serve'
3840
* To start the server on a mobile using Ionic devapp and connected via wifi, type: 'ionic serve --devapp'
3941
* The Ionic DevApp was installed on an Android device from the Google Play app store.
4042

41-
## Code Examples
43+
## :computer: Code Examples
4244

4345
* canActivate function uses auth service to see if user authorized.
4446

@@ -68,22 +70,20 @@ canActivate(route: ActivatedRouteSnapshot): Observable<boolean> {
6870
}
6971
```
7072

71-
## Features
73+
## :cool: Features
7274

7375
* JWT token generated and stored using Ionic Storage. AuthGuard canActivate only true with this token. Token removed upon logging out.
7476

75-
## Status & To-do list
77+
## :clipboard: Status & To-do list
7678

7779
* Status: Working. tested using ionic server.
80+
* To-do: nothing
7881

79-
* To-do: change to use dummy backend random user data then change to a proper backend. Use in one of my own Ionic apps.
80-
81-
## Inspiration
82-
83-
[Simon Grimm of the IonicAcademy, Youtube video 'Building an Ionic 4 JWT Login with Tab Bar & Angular Routing'](https://www.youtube.com/watch?v=lNqXCn8KacI)
82+
## :clap: Inspiration
8483

85-
[Written version of tutorial from Devtactic website: Building an Ionic 4 JWT Login with Tab Bar & Angular Routing](https://devdactic.com/ionic-4-jwt-login/)
84+
* [Simon Grimm of the IonicAcademy, Youtube video 'Building an Ionic 4 JWT Login with Tab Bar & Angular Routing'](https://www.youtube.com/watch?v=lNqXCn8KacI)
85+
* [Written version of tutorial from Devtactic website: Building an Ionic 4 JWT Login with Tab Bar & Angular Routing](https://devdactic.com/ionic-4-jwt-login/)
8686

87-
## Contact
87+
## :envelope: Contact
8888

89-
Repo created by [ABateman](https://www.andrewbateman.org) - feel free to contact me!
89+
* Repo created by [ABateman](https://www.andrewbateman.org) - you are welcome to [send me a message](https://andrewbateman.org/contact)

img/login.png

222 KB
Loading

0 commit comments

Comments
 (0)