Git Product home page Git Product logo

xchange's Introduction

MIT xPro logo MIT xCHANGE | BadBank Project MIT xPro logo

MIT xCHANGE custom JavaScript stock ticker animated gif

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:

  1. Languages: HTML, CSS, JavaScript
  2. React Hooks: useState, useEffect, useContext
  3. Axios, Bootstrap, Formik, ReactRouter, ScrollMagic
  4. API fetch and dynamic component rendering
  5. Entry validation with error handling
  6. Local and session storage
  7. Mobile first and responsive design

MIT xCHANGE QR code

About

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:

  1. 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
  2. Home Page
    • Includes bank title, image, and welcome message
  3. 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
  4. 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
  5. User Data Page
    • Includes a styled Bootstrap card
    • User data is displayed on the card instead of JSON format

Custom Functional Elements:

  1. Fetch currency exchange data from CoinGecko.com API
  2. Pop-up currency calculator with today's rates
  3. Currency calculator has error handling
  4. 'Mock' back-end database using local and session storage
  5. User login and credential validation with error handling
  6. Transaction history and optional transaction notes
  7. User data reset button to clear cookies

Custom Design Elements:

  1. Currency exchange theme
  2. Customized images, logos, and icons
  3. CSS animations and transitions
  4. Mobile QR code
  5. JavaScript 'stock ticker' displaying current exchange rates
  6. Loading animation while fetching
  7. Business-like footer with animated elements and social links
  8. Free productivity apps, a limited time special offer!

How to Run

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

Future Roadmap

  • 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

MIT License

Copyright (c) 2022 Pete Chu codeByPete logo 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.

xchange's People

Contributors

codetracklift avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.