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: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
21
21
22
22
-### order-api
23
23
24
-
`Spring Boot` Web Java backend application that exposes a Rest API to create, retrieve and delete orders. If a user has `ADMIN` role he/she can also retrieve information of other users or delete them.
24
+
`Spring Boot` Web Java backend application that exposes a Rest API to create, retrieve, and delete orders. If a user has the `ADMIN` role, he/she can also retrieve information of other users or delete them.
25
25
26
-
The application secured endpoints can just be accessed if a valid JWT access token is provided.
26
+
The application's secured endpoints can only be accessed if a valid JWT access token is provided.
27
27
28
28
`order-api` stores its data in [`Postgres`](https://www.postgresql.org/) database.
29
29
@@ -47,9 +47,9 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
47
47
48
48
`React` frontend application where a user with role `USER` can create an order and retrieve a specific order. On the other hand, a user with role `ADMIN` as access to all secured endpoints.
49
49
50
-
In order to access the application, a `user` or `admin` must login using his/her `username` and `password`. All the requests coming from `order-ui` to secured endpoints in `order-api`have the JWT access token. This token is generated when the `user` or `admin`logins.
50
+
In order to access the application, a `user` or `admin` must log in using his/her `username` and `password`. All the requests coming from `order-ui` to secured endpoints in `order-api`include the JWT access token. This token is generated when the `user` or `admin`logs in.
51
51
52
-
`order-ui` uses [`Semantic UI React`](https://react.semantic-ui.com/) as CSS-styled framework.
52
+
`order-ui` uses [`Semantic UI React`](https://react.semantic-ui.com/) as a CSS-styled framework.
53
53
54
54
## Prerequisites
55
55
@@ -62,7 +62,7 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
62
62
63
63
- In a terminal, make sure you are inside the `springboot-react-jwt-token` root folder;
64
64
65
-
- Run the following command to start docker compose containers:
65
+
- Run the following command to start Docker Compose containers:
66
66
```
67
67
docker compose up -d
68
68
```
@@ -124,7 +124,7 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
124
124
{ "password": "user", "username": "user" }
125
125
```
126
126
127
-
- Click `Execute` button. It should return something like:
127
+
- Click the `Execute` button. It should return something like:
@@ -268,13 +268,13 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
268
268
269
269
- **jwt.io**
270
270
271
-
With [jwt.io](https://jwt.io) you can inform the JWT token and the online tool decodes the token, showing its header and payload.
271
+
With [jwt.io](https://jwt.io), you can input the JWT token, and the online tool decodes the token, showing its header and payload.
272
272
273
273
## Shutdown
274
274
275
275
- To stop `order-api` and `order-ui`, go to the terminals where they are running and press `Ctrl+C`;
276
276
277
-
- To stop and remove docker compose containers, network and volumes, go to a terminal and, inside the `springboot-react-jwt-token` root folder, run the command below:
277
+
- To stop and remove Docker Compose containers, network, and volumes, go to a terminal and, inside the `springboot-react-jwt-token` root folder, run the command below:
0 commit comments