You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elementRef/README.md
+24-25Lines changed: 24 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,47 +2,46 @@
2
2
3
3
## Preqrequisites
4
4
5
-
You must have docker on your local system<br/><br/>
5
+
You must have docker on your local system
6
6
7
-
- In terminal go to the root of this repository<br/><br/>
8
-
- Type the following command into the terminal `docker build ./api -t api`<br/><br/>
9
-
- Type the following command into the terminal `docker build ./frontend -t frontend`<br/><br/>
10
-
- To start the dockerized application enter the following command into the terminal `docker-compose up`
11
-
<br/><br/>
7
+
- In terminal go to the root of this repository
8
+
- Type the following command into the terminal `docker build ./api -t api`
9
+
- Type the following command into the terminal `docker build ./frontend -t frontend`
10
+
- To start the dockerized application enter the following command into the terminal `docker-compose up`
12
11
13
-
-The frontend application will be hosted on `http://localhost:4200/` and the backend will be hosted on `http://localhost:8000/`
12
+
- The frontend application will be hosted on `http://localhost:4200/` and the backend will be hosted on `http://localhost:8000/`
14
13
15
-
# Run the application on your local system
14
+
##Run the application on your local system
16
15
17
16
## Prerequisites
18
17
19
-
You must have node and mongodb installed.<br/><br/>
18
+
You must have node and mongodb installed.
20
19
21
-
-In terminal go to the root of this repository<br/><br/>
20
+
- In terminal go to the root of this repository
22
21
23
-
-In the terminal run the following commands
22
+
- In the terminal run the following commands
24
23
25
-
```
24
+
```bash
26
25
cd api
27
26
npm i
28
27
node app.js
29
28
```
30
29
31
-
-At the root level in the terminal run the following commands
30
+
- At the root level in the terminal run the following commands
32
31
33
-
```
32
+
```bash
34
33
cd frontend
35
34
npm i
36
35
ng serve
37
36
```
38
37
39
-
-The application will be hosted on `http://localhost:4200/` and the backend will be hosted on `http://localhost:8000`
38
+
- The application will be hosted on `http://localhost:4200/` and the backend will be hosted on `http://localhost:8000`
40
39
41
-
# API Requests
40
+
##API Requests
42
41
43
-
-To login
42
+
- To login
44
43
45
-
```
44
+
```http
46
45
POST http://localhost:8000/signin
47
46
48
47
{
@@ -51,9 +50,9 @@ POST http://localhost:8000/signin
51
50
}
52
51
```
53
52
54
-
-To Signup
53
+
- To Signup
55
54
56
-
```
55
+
```http
57
56
POST http://localhost:8000/signup
58
57
59
58
{
@@ -63,19 +62,19 @@ POST http://localhost:8000/signup
63
62
}
64
63
```
65
64
66
-
-To find professionals
65
+
- To find professionals
67
66
68
-
```
67
+
```http
69
68
POST http://localhost:8000/find
70
69
71
70
{
72
71
"token": String
73
72
}
74
73
```
75
74
76
-
-To update user info
75
+
- To update user info
77
76
78
-
```
77
+
```https
79
78
POST http://localhost:8000/update
80
79
{
81
80
"token": String,
@@ -86,6 +85,6 @@ POST http://localhost:8000/update
86
85
}
87
86
```
88
87
89
-
# Vulnerable payload
88
+
##Vulnerable payload
90
89
91
90
In the `Update` section in the Url section put `javascript:alert(window.localStorage('token'))`. Now in the `Professionals` section, the link containing this user's website will be vulnerable.
0 commit comments