Code Monkey home page Code Monkey logo

fhict-2021vj-personal-goals-coach's People

Contributors

cyrildewit avatar

Stargazers

 avatar

Watchers

 avatar

fhict-2021vj-personal-goals-coach's Issues

Testing

DAO's

Integration tests with a test database that's equal to production.

SqlGoalDao

  • selectAllGoals
  • selectAllGoalsForUser
  • findGoalById
  • findGoalByUuid
  • insertGoal
  • updateGoal
  • deleteGoalById
  • getTotalGoalsCountForUser

SqlSubgoalDao

  • selectAllSubgoals
  • selectAllSubgoalsForGoal
  • selectAllFirstLevelSubgoalsForGoal
  • selectAllSubgoalsForSubgoal
  • findSubgoalById
  • findSubgoalByUuid
  • insertSubgoal
  • updateSubgoal
  • deleteSubgoalById
  • deleteSubgoal
  • countAllSubgoalsForGoal
  • countAllFistLevelSubgoalsForGoal
  • countAllSubgoalsForSubgoal
  • countAllFistLevelSubgoalsForSubgoal
  • resolveFirstSubgoalFromResultSet
  • resolveSubgoalsFromResultSet
  • mapResultSetToSubgoal

SqlUserDao

  • selectAllUsers
  • findUserById
  • findUserByUuid
  • findUserByEmail
  • insertUser
  • updateUser
  • deleteUserById
  • deleteUser
  • resolveUsersFromResultSet
  • mapResultSetToUser

Data Models

User

  • getFullName

Showcase - Iteration Plan 1

Description

The use cases below must be realized in the first sprint. An important aspect during this process is that the data models, services, DAOs and controllers are tested automatically (integration and unit).

Use Case

UC 1 Register

Primary Actor Guest
Goal in Context Guest creates an account.
Scope Personal Goals Coach
Level User Goal
Stakeholders and Interests Guest
Main Success Scenario 1. Guest: initiates registration process.
2. Guest: fills in a full name.
3. Guest: fills in an email address.
4. Guest: fills in a password with confirmation.
5. Guest: agrees with the terms and conditions.
6. Guest: finishes the registration process by submitting the form.
7. System: stores the goal in the database.
8. System: sends verify email address email (UC 3 Send Verify Email Address Email).
9. Guest: verifies email address (UC 4 Verify Email Address).
Exceptions 6a. If the full name is missing, a validation error should be shown.
6b. If the email address is missing, a validation error should be shown.
6c. If an account with the same email has already been registered, a validation error should be shown.
6d. If the password is missing, a validation error should be shown.
6e. If the password doesn’t conform to the safe password standards,  a validation error should be shown.
6f. If the password confirmation is missing, a validation error should be shown.
6g. If the password confirmation is not equal to the password, a validation error should be shown.

Point 8 en 9 from Main Success Scenario are not part of this iteration plan.

UC 2 Log in

Primary Actor User
Goal in Context User logs in into the system.
Scope Personal Goals Coach
Level User Goal
Stakeholders and Interests User
Main Success Scenario 1. Guest: initiates login process.
2. Guest: fills in an email address.
3. Guest: fills in the corresponding password.
4. Guest: finishes the login process by submitting the form.
5. System: authenticates the user.
6. System: redirects the user to the dashboard page.
Exceptions 4a. If the email address is missing, a validation error should be shown.
 4b. If the password is missing, a validation error should be shown.
 4c. If the email and password do not match, a validation error should be shown.
 4d. If the user attempts to many times in a short period, the user that corresponds with the email address should be locked for a period that increases with each new attempt.

UC 7 Create Goal

Primary Actor User
Goal in Context User creates goal.
Scope Personal Goals Coach
Level User Goal
Stakeholders and Interests User
Main Success Scenario 1. User: initiates goal creation process.
2. User: formulates a short title for the goal.
3. User: fills in optional description.
4. User: sets optional deadline.
5. User: adds optional media.
6. System: stores the goal in the database.
7. User: provide optional scheduled working schedule (UC 8 Create Goal Working Schedule).
8. User: configure optinoal coaching style preference (UC 10 Configure Coaching Style Preference). System: show overview of created goal with a button to open the goal.
Exceptions 2a. If the title is too long, the system should notify the user about this and give him some tips.

UC 9 Create Subgoal

Primary Actor User
Goal in Context User creates a subgoal for a goal or subgoal
Scope Personal Goals Coach
Level User Goal
Stakeholders and Interests User, System
Precondition The User needs to create a goal first before he can create a subgoal. Or the subgoal needs to be created for another subgoal.
Main Success Scenario 1. User: initiates subgoal creation process.
2. User: formulates a short title for the subgoal.
3. User: fills in optional description.
4. User: sets optional deadline.
5. User: adds optional media.
6. User: finishes creating the subgoal by clicking on the submit button.
7. System: stores the subgoal in the database.
Exceptions 1a. If User initates the subgoal creation process within 8 levels deep of subgoals, the system should notice the User about this and give him some tips.
2a. If the title is too long, the system should notice the User about this and give him some tips.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.