Skip to content

Commit 58fde86

Browse files
committed
first commit
1 parent 50629a4 commit 58fde86

1 file changed

Lines changed: 24 additions & 25 deletions

File tree

elementRef/README.md

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,46 @@
22

33
## Preqrequisites
44

5-
You must have docker on your local system<br/><br/>
5+
You must have docker on your local system
66

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`
1211

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/`
1413

15-
# Run the application on your local system
14+
## Run the application on your local system
1615

1716
## Prerequisites
1817

19-
You must have node and mongodb installed.<br/><br/>
18+
You must have node and mongodb installed.
2019

21-
- In terminal go to the root of this repository<br/><br/>
20+
- In terminal go to the root of this repository
2221

23-
- In the terminal run the following commands
22+
- In the terminal run the following commands
2423

25-
```
24+
``` bash
2625
cd api
2726
npm i
2827
node app.js
2928
```
3029

31-
- At the root level in the terminal run the following commands
30+
- At the root level in the terminal run the following commands
3231

33-
```
32+
``` bash
3433
cd frontend
3534
npm i
3635
ng serve
3736
```
3837

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`
4039

41-
# API Requests
40+
## API Requests
4241

43-
- To login
42+
- To login
4443

45-
```
44+
``` http
4645
POST http://localhost:8000/signin
4746
4847
{
@@ -51,9 +50,9 @@ POST http://localhost:8000/signin
5150
}
5251
```
5352

54-
- To Signup
53+
- To Signup
5554

56-
```
55+
``` http
5756
POST http://localhost:8000/signup
5857
5958
{
@@ -63,19 +62,19 @@ POST http://localhost:8000/signup
6362
}
6463
```
6564

66-
- To find professionals
65+
- To find professionals
6766

68-
```
67+
``` http
6968
POST http://localhost:8000/find
7069
7170
{
7271
"token": String
7372
}
7473
```
7574

76-
- To update user info
75+
- To update user info
7776

78-
```
77+
``` https
7978
POST http://localhost:8000/update
8079
{
8180
"token": String,
@@ -86,6 +85,6 @@ POST http://localhost:8000/update
8685
}
8786
```
8887

89-
# Vulnerable payload
88+
## Vulnerable payload
9089

9190
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

Comments
 (0)