|
1 |
| -**[Table of Contents](http://tableofcontent.eu)** |
2 |
| -<!-- Table of contents generated generated by http://tableofcontent.eu --> |
3 |
| -- [Design of the project](#design-of-the-project) |
4 |
| -- [Youtube video to explain the code base](#youtube-video-to-explain-the-code-base) |
5 |
| -- [How to run the project](#how-to-run-the-project) |
6 |
| -- [End point urls](#end-point-urls) |
7 |
| - |
8 |
| - |
9 |
| -## Design of the project |
10 |
| -The design has been explained in following ppt - |
11 |
| -* https://github.com/greenlearner01/MyNotes/blob/master/ppt/Rest_application_with_spring_boot.pptx |
12 |
| - |
13 | 1 | ## Youtube video to explain the code base
|
14 | 2 |
|
15 |
| -* https://www.youtube.com/playlist?list=PLq3uEqRnr_2Hb9M-hz6GPVg_x9TUQ9PJA |
16 |
| - |
17 |
| -## How to run the project |
18 |
| -* Clone it to local - git clone https://github.com/greenlearner01/Microservices.git and |
19 |
| -* Navigate to userManagementApp folder |
20 |
| -* Now there are two ways to run the project |
21 |
| - * First- running jar file |
22 |
| - * navigate to <userManagementApp> directory from command prompt |
23 |
| - * execute below command |
24 |
| - |
25 |
| - gradlew clean build |
26 |
| - |
27 |
| - this will create the jar file inside build/libs |
28 |
| - * go to /build/libs and execute > java -jar <firstName of the jar> <firstName-of-application>.jar |
29 |
| - * Sencond way - Directly running the main method |
30 |
| - * Open the project in IntelliJ Idea or eclipse |
31 |
| - * And run the main method inside UserManagementAppApplication.java |
32 |
| -* The app will run on port 8082 |
33 |
| - |
34 |
| -## End point urls |
35 |
| - |
36 |
| -* AddUser - Post method > http://localhost:8082/user |
37 |
| - |
38 |
| - Request body - |
39 |
| - { |
40 |
| - "id": "1234", |
41 |
| - "firstName": "green learner123", |
42 |
| - "address": "delhi" |
43 |
| - } |
44 |
| - |
45 |
| -* update user - Put method > http://localhost:8082/user |
46 |
| - |
47 |
| - Request body - |
48 |
| - { |
49 |
| - "id": "1234", |
50 |
| - "firstName": "green learner123-updated", |
51 |
| - "address": "delhi-updated" |
52 |
| - } |
53 |
| - |
54 |
| -* Get single user - GET method > http://localhost:8082/user/123 |
55 |
| -* Get all the users - GET method > http://localhost:8082/users |
56 |
| -* Delete user - DELETE method > http://localhost:8082/user/123 |
| 3 | +* https://youtu.be/14YYI5DwObg |
57 | 4 |
|
58 |
| -## DB scripts |
59 |
| -* create table |
0 commit comments