/bank-card-form

The "bank-card-form" is a user-friendly and efficient form component built using React and Vite. This component is specifically designed to capture and validate essential information related to credit or debit card transactions, including the card number, cardholder's name, and expiry date.

Primary LanguageJavaScriptMIT LicenseMIT

📗 Table of Contents

Bank-Card-Form is a user-friendly and efficient form component built using React and Vite. This component is specifically designed to capture and validate essential information related to credit or debit card transactions, including the card number, cardholder's name, and expiry date.

Key Features:

Card Number Input: The form includes an input field to enter the card number, intelligently formatted to enhance readability and user experience. It supports automatic formatting and validation to ensure the entered card number is accurate and complete.

Cardholder's Name Input: The component provides a dedicated input field to capture the cardholder's name. It allows users to enter their name securely and displays real-time validation feedback to ensure the correctness of the entered information.

Expiry Date Selection: The form includes an intuitive dropdown or date picker to select the card's expiry date. It assists users in easily choosing the correct month and year, with built-in validation to prevent selecting expired dates.

Validation and Error Handling: The bank card form implements robust validation mechanisms to ensure the accuracy and integrity of the entered data. It includes real-time validation feedback, such as highlighting erroneous fields, displaying error messages, and preventing form submission until all required fields are correctly filled.

Accessibility and Responsiveness: The form component is designed to be accessible, adhering to best practices for keyboard navigation, screen readers, and other assistive technologies. It is also responsive, ensuring a seamless experience across different devices and screen sizes.

React and Vite: The form component is developed using React, a popular JavaScript library for building user interfaces, and Vite, a fast and efficient build tool that enhances the development workflow. These technologies ensure a performant and optimized development experience while leveraging the power of the React ecosystem.

Whether you are building a financial application, an e-commerce platform, or any other project that involves collecting credit or debit card information, the "bank-card-form" repository provides a reliable and customizable solution. It simplifies the process of creating a secure and user-friendly card input form, saving developers time and effort in implementing these functionalities from scratch.

🛠 Built With

Tech Stack

Client
  • HTML
  • CSS
  • JAVASCRIPT
  • React
  • Redux

Key Features

  • [Linter checks]
  • [VITE]
  • [CSS grid and flexbox]
  • [Routers]
  • Route Navigation
  • [Redux Store]

(back to top)

🚀 Live Demo

(back to top)

💻 Getting Started

To get a local copy up and running, follow these steps.

(back to top)

Prerequisites

In order to run this project you need:

  • The current version of node
  • To have Git installed on your local machine
  • Node Package manager (npm)
  • An editor such as Visual Studio Code

(back to top)

Setup

Clone this repository to your desired folder:

  • Create your classic access token from github.com
  • run "git clone https://{access_token}@github.com/username/{repo_name}.git"
  • Update your git identity by running "git config --global user.email "your_email@gmail.com""
  • Update your name on git by running "git config --global user.name "your_name"

(back to top)

Install

Install this project by running `npm install`

(back to top)

### Usage

To run the project, execute the following command:

  use git bash to open in Vs code
  use `npm run dev` to run web dev server

(back to top)

Run tests

To run tests, run the following command:

Run `npm run test`
Run `npx stylelint "**/*.{css,scss}" --fix` to fix linters
Run `npx eslint "**/*.{js,jsx}" --fix` to fix linters"

(back to top)

Deployment

You can deploy this project using:

  • github pages
  • Netllify
- npm run deploy

(back to top)

👥 Authors

👤 Damilare Ismaila

(back to top)

🔭 Future Features

  • [contact form page for rocket users]
  • [A feature for alternative list of rockets]
  • [A feature for voting the best rocket on the list]

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, kindly drop a star for me.

(back to top)

🙏 Acknowledgments

We would like to use this medium to appreciate Reuben Mashauri for providing the inspiration for this project.

(back to top)

📝 License

This project is MIT licensed.

(back to top)