user management project
This instruction will give some details insight of how to install, run and test the Top Score Ranking sample project. Both Unit tests and Integration tests have been executed on Postman and curl. Please have a look deployment note to know how to import and run the project and conduct test cases locally.
- Java 8 (1.8.0_211)
- Gradle 6 (6.7.1)
- IntelliJ ultimate edition 2020.3
- Spring boot 2.3.2
- MySQL DB.
- JUnit 5
- Postman (v.7.36.1)
- MacOS (Big Sur)
- Download / Clone “user management” from GitHub.
- Run IntelliJ and “open” project from IntelliJ
- Right click on “build.gradle” and click on “build”. If any problem, please close and open the project to ensure build is performed properly.
- Create a MySQL DB “playscore” and create a table “score”. Table columns details are described on “DB Table” section.
- Right click on “UserManagementApplication.java” class under “src -> main -> java -> com -> sample -> user” packages and click on “run”. Application will be started on local tomcat with port 8080.
- lombok may be required to enable annotation in IntelliJ
DB Name: users
Table Name: score
| Column Name | Data Type | Size | Null | Default | Auto Increment | Primary Key | Comments |
|---|---|---|---|---|---|---|---|
| id | varchar | 20 | - | - | Yes | Yes | - |
| password | varchar | 20 | - | 0 | - | -- | - |
| name | Text | 100 | Yes | - | - | - | - |
| commetns | Text | - | - | - | - | - | CURRENT_DATETIME |
| delete_flg | tinyint | 1 | - | 0 | - | - | - |
“application.property” file contains the configuration information for DB setup. Please change password if needed. Property file resides inside resource package.
METHOD : POST
URL : http://localhost:8080/users/{user_id
## Note
1. Trying to keep simplicity of code to follow K.I.S.S
#### Thank you very much for your time!!