/banking-app

banking-app using javascript

Primary LanguageJavaScript

HTML Layout

  • Figma
  • Adobe
  • Drawing
  • Overall Look

Is the Design/HTML Code First or the function (which means

starting the JS code)?

User

  • mobile -> number 11 digits
  • password -> string
  • fullname -> string
  • balance -> number
  • incomes -> array of transactions (type: income)
  • expenses -> array of transactions (type: expense)

Transaction

  • id -> random-number
  • type -> income/expense string

Priority for Today (May 13 2022)

Sign Up (functions first, then DOM)

  • mobile -> number
  • password -> password

takes params mobile and password

check for existing account

  • if existing, show an error " Already exist "
  • if not existing, add to the list of users
  • if not existing, proceed. return the user object

Login (functions first, then DOM)

takes params mobile and password

check for existing account

  • if existing, proceed to dashboard
  • if none existing, throw an error
  • if wrong creds, throw an error

List all Users