fssa-batch3 / fssa-batch3/sec_b_santhosh.devendran__corejava_project_2
Create user
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature: Create User
>Create a new user in a database.
#### Pre-requisites:
- [ ] user DAO( create user )
- [ ] user service ( create(User user) )
#### Validations:
- [ ] Form Validation
* create( User user )
* user null
* name ( null, empty, pattern )
* email ( null, empty, pattern )
* password ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )
- [ ] Business Validation
* Email Already exists
#### Messages:
* Invalid User object
* Invalid name input
* Invalid email input
* Invalid password input
* Invalid phone number input
* User already exists
#### Flow:
```mermaid
graph TD;
A[Value Passed to UserService - User Object] --> B[Form Validation & Business Validation]
B--> C{Validation Result}
C -- Valid --> D[Value Passed to UserDAO]
D --> E[Store Value in Database]
C -- Invalid --> F[Validation Exception]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.