fssa-batch3 / fssa-batch3/sec_b_kishore.sugumar__corejava_project_2

Create 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

### Feature: Create User
> The create user feature creates new users in the users table of the database.
#### Pre-requisites:
* Create user table
* Create user entity
* Create user model
* user DAO (create)
* user service
#### Validations:
* Form Validation
* user null
* name ( null, empty, pattern )
* email ( null, empty, pattern )
* password ( null, empty, pattern )
* location ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )

* Business Validation
* Email Already exists
#### Messages:
* Invalid user input
* Name cannot be null or empty
* Email cannot be null or empty
* Password cannot be null or empty
* Location cannot be null or empty
* Invalid email length
* Invalid password length
* Invalid name length
* Invalid location length
* Invalid number input
* Invalid email pattern
* Invalid name pattern
* Invalid password pattern
* Invalid location pattern
* User already exists
#### Flow:
> Invalid When a user's email address is already in use or when the input provided does not meet the criteria, users arise.
```mermaid
graph TD;
A(Argument Passed to UserService - User Object) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> E(Argument Passed to UserDAO)
E --> F(Store Value in Database)
C -- Invalid --> H(Throw 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.