Demo: https://codetracklift.github.io/xchange/
Video Tour: https://youtu.be/qeuvfEmJ7_s/
Initial development of this project took about 10 days and was completed approximately 6 months into myCodingJourney.
In the following weeks, this BadBank integrated with a MongoDB database, see the Full Stack MERN Bank Project or Readme for more details.
Skills Utilized:
- Languages: HTML, CSS, JavaScript
- React Hooks: useState, useEffect, useContext
- Axios, Bootstrap, Formik, ReactRouter, ScrollMagic
- API fetch and dynamic component rendering
- Entry validation with error handling
- Local and session storage
- Mobile first and responsive design
This is the MIT xPRO Full Stack Coding Bootcamp Front End Project, starter code was provided.
The project is a functional, fully responsive, and mobile first web application that allows users to create bank accounts, make transactions, and review user data. This application uses local and session storage to simulate a back-end database.
Project Requirements:
- Navigation Bar
- Routes to: Home, Account, Deposit, Withdraw, User Data
- Styled with Bootstrap, shows current active page
- Hover effects and pop-up with brief description
- Home Page
- Includes bank title, image, and welcome message
- Account Page
- Includes a form on a Bootstrap card
- Form has input fields: name, email, password, and create account button
- Entry validation: blank fields, password < 8 characters
- Submit button is disabled if inputs are blank
- User is notified of successfully account creation or input error
- Deposit and Withdraw Pages
- Includes a form on a Bootstrap card showing user balance
- Form has an input field: amount and submit button
- Entry validation: not a number, negative numbers, overdraft protection
- Submit button is disabled if input is blank
- User is notified of successfully transaction or input error
- User Data Page
- Includes a styled Bootstrap card
- User data is displayed on the card instead of JSON format
Custom Functional Elements:
- Fetch currency exchange data from CoinGecko.com API
- Pop-up currency calculator with today's rates
- Currency calculator has error handling
- 'Mock' back-end database using local and session storage
- User login and credential validation with error handling
- Transaction history and optional transaction notes
- User data reset button to clear cookies
Custom Design Elements:
- Currency exchange theme
- Customized images, logos, and icons
- CSS animations and transitions
- Mobile QR code
- JavaScript 'stock ticker' displaying current exchange rates
- Loading animation while fetching
- Business-like footer with animated elements and social links
- Free productivity apps, a limited time special offer!
Account Management & User Data
Users can create a new account or log into an existing account on the Account page. User data is stored in local storage and session storage, cookies can be reset on the User Data Page.
Deposits and Withdrawals
Once logged in, users can make transactions on the respective pages. The app will validate the user's input and notify the user of any errors.
Currency Calculator & Exchange Rates
API data is fetched from CoinGecko.com upon page load. The app will display the current exchange rates for today's date. The user can use the currency calculator to convert between currencies.
Dependencies
React, Axios, Bootstrap, Formik, ReactRouter, ScrollMagic
- Add a 'mock' back-end database
- Add a user login
- Add transactions to context
- Render transaction history
- Fetch API data from CoinGecko.com
- Render API data on page
- Develop a 'stock ticker'
- Develop a 'currency calculator'
- Add design elements to simulate a business footer
Copyright (c) 2022 Pete Chu codeByPete
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.