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
- Upgrade to spring-boot 3.2.5;
- Upgrade to springdoc-openapi 2.5.0;
- Upgrade to jjwt 0.12.5;
- Upgrade to react 18.3.1;
- Upgrade to react-dom 18.3.1;
- Upgrade to axios 1.6.8;
- Upgrade to react-router-dom 6.23.0;
- Upgrade to postgres docker image 16.1;
- Remove obsolete version field in docker-compose.yml;
- Update README.
| order-ui | http://localhost:3000 | `admin/admin`, `user/user` or signing up a new user |
101
101
102
-
> **Note**: the credentials shown in the table are the ones already pre-defined. You can signup new users
102
+
> **Note**: the credentials shown in the table are the ones already pre-defined. You can signup new users.
103
103
104
104
## Demo
105
105
106
-
- The gif below shows a `user` loging in
106
+
- The gif below shows a `user` loging in:
107
107
108
108

109
109
110
-
- The gif below shows an `admin` loging in
110
+
- The gif below shows an `admin` loging in:
111
111
112
112

113
113
114
114
## Testing order-api Endpoints
115
115
116
116
- **Manual Endpoints Test using Swagger**
117
117
118
-
- Open a browser and access http://localhost:8080/swagger-ui.html. All endpoints with the lock sign are secured. In order to access them, you need a valid JWT access token.
118
+
- Open a browser and access http://localhost:8080/swagger-ui.html. All endpoints with the lock sign are secured. In order to access them, you need a valid JWT access token;
119
119
120
-
- Click `POST /auth/authenticate` and then, click `Try it out` button
120
+
- Click `POST /auth/authenticate` and then, click `Try it out` button;
121
121
122
-
- Provide the `user` credentials `username` and `password`
122
+
- Provide the `user` credentials `username` and `password`:
123
123
```
124
124
{ "password": "user", "username": "user" }
125
125
```
126
126
127
-
- Click `Execute` button. It should return something like
127
+
- Click `Execute` button. It should return something like:
@@ -214,13 +214,13 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
214
214
215
215
- **Automatic Endpoints Test**
216
216
217
-
- Open a terminal and make sure you are in `springboot-react-jwt-token` root folder
217
+
- Open a terminal and make sure you are in `springboot-react-jwt-token` root folder;
218
218
219
-
- Run the following script
219
+
- Run the following script:
220
220
```
221
221
./order-api/test-endpoints.sh
222
222
```
223
-
It should return something like the output below, where it shows the http code for different requests
223
+
It should return something like the output below, where it shows the http code for different requests:
224
224
```
225
225
POST auth/authenticate
226
226
======================
@@ -271,18 +271,18 @@ On [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-C
271
271
272
272
## Shutdown
273
273
274
-
- To stop `order-api` and `order-ui`, go to the terminals where they are running and press `Ctrl+C`
274
+
- To stop `order-api` and `order-ui`, go to the terminals where they are running and press `Ctrl+C`;
275
275
276
-
- To stop and remove docker compose containers, network and volumes, go to a terminal and, inside `springboot-react-jwt-token` root folder, run the command below
276
+
- To stop and remove docker compose containers, network and volumes, go to a terminal and, inside: `springboot-react-jwt-token` root folder, run the command below
277
277
```
278
278
docker compose down -v
279
279
```
280
280
281
281
## How to upgrade order-ui dependencies to latest version
282
282
283
-
- In a terminal, make sure you are in `springboot-react-jwt-token/order-ui` folder
283
+
- In a terminal, make sure you are in `springboot-react-jwt-token/order-ui` folder;
0 commit comments