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:
- Build a React application.
- Design and build UI components using React.
- Use Context API in React.
- Deploy a React application using Amazon Web Services.
Verify AWS deployment here.
- Includes Create Account, Deposit, Withdraw, All Data, and Home pages.
- Each navigation bar item routes the user to the relevant 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
- Success message.
- 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.
- 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.
- Updated balance.
- Includes the following information about each user:
- Includes the following information about the corresponding user:
- History of operations
- Balance
- User does not exist message displays if user does not exist.
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
To run Bad Bank app in dev mode:
- Clone this repo.
cd
into project directory.- Install the dependencies by running the following command:
npm install
- Start the server by running the following command:
npm start
The http:localhost:3000
page will be automatically opened in your browser.