fssa-batch3 / fssa-batch3/sec_a_naveenasri.nagarajan__corejava_project_2

Architect module | Create Architect Feature

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
architect-module enhancement
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Architect Register Process

### Architect Story - Register
- Architect can create an account with the following information:
- Profile Photo
- Name
- Gender
- Phone Number
- Address
- Cover Photo
- Email
- Password
- Education
- Experience
- Degree Certificate
- NATACertificate
- Successful registration when all required information is provided correctly.
- Display relevant error messages for invalid or incomplete information:
- "Name is required" if the name field is left blank.
- "Invalid email address" for incorrect email format.
- "Password must be at least 8 characters long and contain a mix of letters, numbers, and symbols" for weak passwords.
- "Invalid phone number format" for incorrectly formatted phone numbers.
- After successful registration, inform the architect of their registration and provide relevant instructions.

### Register Task

- [ ] Implement architect registration functionality in the Service Layer.
- [ ] Create a Data Access Object (DAO) to save architect information to the database.
- [ ] Write Test Cases to verify the architect registration process:
- [ ] Test successful architect registration.
- [ ] Test registration with an invalid email format.
- [ ] Test registration with a weak password.
- [ ] Test registration with a missing name.
- [ ] Test registration with an invalid phone number format.
- [ ] Ensure that all test cases are passing successfully.
- [ ] Write clear and concise comments in the code to explain any complex registration logic.

### DAO:
- [ ] arcRegister()
- [ ] isEmailExists()

### Service:
- [ ] registerArchitect()

### Test:
- [ ] testArchitectRegistrationSuccess()
- [ ] testArchitectRegistrationNullName()
- [ ] testArchitectRegistrationEmptyEmailExists()
- [ ] testArchitectRegistrationEmailExists()
- [ ] testArchitectRegistrationInvalidExperience()
- [ ] testArchitectRegistrationValidURLs()
- [ ] testArchitectRegistrationInvalidURLs()

### Estimation
- [ ] 2 hrs

### Flow
```mermaid
graph TD
A[(Start)] --> B([Validate Architect])
B --> |Valid| C([Check Existing Active Architect])
B --> |Invalid| E{{Validation Exception}}
C --> |Active Architect Found| F{{ServiceException}}
C --> |Architect Not Found| D([Create Architect])
D --> |Success| I([Registration Successful])
E --> |Fail| G([Registration Failed])
F --> |Fail| G
G --> H[(End)]
I --> H
```

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.