arlagonix / todo-with-auth

Todo App with Frontend, Backend Authorization and Storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todo App with Frontend, Backend Authorization and Storage

User Requirements

Login Screen

As An unauthorized user
I want to Have my todo items accessibly only by me
In order to Avoid unwanted users from accessing my data
Given When Then
User is unauthorized User enters the login screen System displays the login screen
User is authorized User enters the login screen System redirects user to the todo list screen
For brevity I further assume that user in unauthorized
- User enters Username System validates it as following
  • Length: 4-20 (exclusively)
  • Required: true

When to display error messages:
  • When length is wrong
  • When the field is empty (after being touched)
- User enters Password System validates it as following
  • Length: 8-128 (exclusively)
  • Required: true

When to display error messages:
  • When length is wrong
  • When the field is empty (after being touched)
Login, Password are valid
AND
Pair (Login, Password) is correct
User inititates logging in System redirects user to the todo list screen
User is unauthorized
AND
Login or Password is invalid
- System disables possibility to initiate entering the system
(otherwise enables it)
Login and Password are valid
AND
Pair (Login, Password) is incorrect
User initiates logging in System displays error message
- User initiates creating a new account System displays an account creation screen

Create Account Screen

As An unauthorized user
I want to Create new accounts
In order to Save todo items on the server, limit access to the todo items

About

Todo App with Frontend, Backend Authorization and Storage

License:MIT License


Languages

Language:TypeScript 100.0%