fssa-batch3 / fssa-batch3/sec_b_vignesh.ramachandran__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 1: Create User
#### User story
User can create their profile.
#### Pre-requisites:
- Implements User Service(create)
- Implement User DAO(create)

#### Validation
- [ ] Form validation
- user null
- name (null or empty string)
- email (null or empty string)
- password (null or empty string)
- email pattern validation
- password pattern validation
- phone_number ( >= 600000001 && <= 9999999999 )
- [ ] Business validation
- email alreadyExists

#### Messages
- [ ] User cannot be null
- [ ] Invalid Email Id
- [ ] Password doesn't match the required format
- [ ] name cannot be null or empty
- [ ] email cannot be null or empty
- [ ] password cannot be null or empty
- [ ] phone_number doesn't match the required format
- [ ] User already exists(Business validation)

#### Flow:
```mermaid
graph TD;
A["User Service: User Creation"] --> B["Form Validation"]
B -- Valid--> C0["Business Validation"]
C0 --> C["Unique Email Check"]
B -- InValid--> C1["Validation Exception: Invalid input"]
C -- Yes --> D["User DAO: Create User"]
D --> E["Validation Exception: 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.