fssa-batch3 / fssa-batch3/sec_b_vigneshwar.vijayakumar__corejava_project_2

Create new User

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

#### User Story:
> User can create a new account.
#### Pre-requisites:
- [ ] Create 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
- Email Already exists.

#### Messages:
- User object can not be null.
- Name cannot be null or empty.
- Email cannot be null or empty.
- Email does not match the pattern.
- Password can not be null or empty.
- Password does not match the pattern.
- Phone number can not be less than or more than 10 digits.
- Phone number does not match the pattern.
- User already exists.

#### Flow:
```mermaid
graph TD;
A(Value Passed to UserService - User Object) --> B(Form Validation) -- Valid --> C(Business Validation)
B --Invalid --> G(Validation Exception)
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.