Iteration 3 Plan - SeventwoZ/ku-polls GitHub Wiki

Goal

  • Add an user authentication feature.
  • 1 authorized user can vote only 1 time.

Features

  1. Add a login and logout features.
  2. Only authorized user can submit a vote.
  3. Authorized user can modify their vote.
  4. Everyone can see the results of the votes and polls even if they are not authorized.
  5. Add a signup feature.

Milestone

  • User can signup an account for authorized.
  • Authorized users can vote only 1 time per user and can modify their choices.

Task

  1. Add a demo user.
  2. Add login and logout.
  3. Authenticated user can only submited a vote.
  4. Create an unittest to test some features.

Acceptance Criteria

  1. Application can be logged in and logged out.
  2. Only authorized users can and modify their choices.
  3. All unittest passed.
  4. Implement all task in iteration3 and merge into main branch.

Restrospective

What did I improve

  • Implementing a 1 by 1 polls and modify that only authenticated user can vote a choice on a polls.
  • Add a login/logout system and add a signup option.

What did I struggled with

  • The unittest is failed and return an Assertion error.
  • The HTML is kind of messy and looks weird because I'm not good with it.

What did I learn

  • I learn a lot of how to implement each user can only use 1 vote on each question on polls and how to implement an authentication system.

What to Improve

  • Relearning about Django models
  • Adjusting and styling CSS and HTML style