Skip to content

React-based frontend to deposit and withdraw money from your account

Notifications You must be signed in to change notification settings

alexandrabaturina/mit-banking-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front-End Development With React Capstone: Bad Bank

Overview

The current repo contains Bad Bank app which is a website to deposit and withdraw money from your account.

This app is build as capstone for Front-End Development With React course provided by MIT xPRO.

In Bad Bank app, the following outcomes are addressed:

Verify AWS deployment here.

Features

Navigation Bar

  • Includes Create Account, Deposit, Withdraw, All Data, and Home pages.
  • Each navigation bar item routes the user to the relevant page. image

Home Page

  • Includes bank title, image, and a welcome message. image

Create Account Page

  • The page includes the Create Account form that has the following elements.
    • Name input field.
    • Email input field.
    • Password input field.
    • Create Account button.
      • The button is disabled if any of the fields left blank or validation criteria are not met.
  • The page has the following functionality.
    • Success message.
      • If all validation criteria are met, upon clicking the Create Account button the user sees a success message.
    • Add Another Account button.
      • Upon clicking the Create Account button, the user sees Add Another Account button.
    • Cleared Create Account form.
      • Clicking the Create Account button opens a cleared Create Account form.
    • Form validation
      • The Create Account button is disabled if any field is left blank.
      • The user receives an error message if:
        • username is not unique within a session;
        • email does not meet basic requirements (domain or @ missed etc.);
        • password is less than 8 characters long. image

Deposit Page

  • Includes the Deposit form that has the following elements.
    • Deposit Amount number input field.
    • Deposit button.
    • Balance information that is displayed above the input field.
  • The page has the following functionality.
    • Updated balance.
      • When a user deposits, the balance updates.
    • Success message.
      • When a user completes the Deposit form, they receive a success message confirming their deposit was received.
    • Deposit button is disabled if nothing is input. image

Withdraw Page

  • The page includes the Withdraw form that has the following elements.
    • Withdraw Amount number input field.
    • Withdraw button.
    • Balance information that is displayed above the input field.
  • The page has the following functionality.
    • Updated balance.
      • When a user completes the Withdraw form, the number submitted is subtracted from the total balance.
      • Success message.
        • When a user completes the Withdraw form, they receive a success message confiming their withdraw was processed.
      • Account overdaraft feature.
        • When a user withdraws a number higher than the account balance, the user recieves an alert message.
      • Withdraw button is disabled if nothing is input. image

All Data Page

  • Includes the following information about each user:
    • Name
    • Email
    • Password
    • Balance
    • A link to corresponding profile page. image

Profile Page

  • Includes the following information about the corresponding user:
    • History of operations
    • Balance
  • User does not exist message displays if user does not exist. image

Dev Dependencies

Bad Bank app has the following dev dependencies:

  • React-Bootstrap library – to style UI components
  • Formik library – to manage forms
  • Yup schema builder – to validate forms

To install dev dependencies, run the following command:

npm install

Getting Started

To run Bad Bank app in dev mode:

  1. Clone this repo.
  2. cd into project directory.
  3. Install the dependencies by running the following command:
npm install
  1. Start the server by running the following command:
npm start

The http:localhost:3000 page will be automatically opened in your browser.

Author

Alexandra Baturina

About

React-based frontend to deposit and withdraw money from your account

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published