fssa-batch3 / fssa-batch3/sec_b_saranya.ramesh__corejava_project_2
Create user
- Dominant language
- Java
- 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 table
- [ ] user model
- [ ] user DAO( create )
- [ ] user service ( create )
#### Validations:
- [ ] Form Validation
* user null
* name ( null, empty, pattern )
* email ( null, empty, pattern )
* password ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )
- [ ] Business Validation
* Check whether the email is already exists
#### Messages:
* Invalid User object.
* Name cannot be null or empty.
* Name should match the pattern.
* Password format is invalid.
* Password cannot be null or empty.
* Password must contain at least 8 characters.
* Invalid phone number.
* The email already exists.
* Email cannot be null or empty.
* Email should match the format pattern.
#### Pre-requisites:
- [ ] Create User table
- [ ] Implement User model
- [ ] Implement User DAO (create)
#### Flow:
```mermaid
graph TD;
A[User Service: Register User] --> B[Form Validation]
B -- Valid --> C(Business Validation)
B -- Invalid --> G(Validation Exception)
C -- Yes --> D[User DAO: Create User]
D --> E[User Service: User Created - Response]
C -- No --> F[User Service: Email Already Exists - Error Response]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.