/Credit-Card-Luhn-Validation

CreditCard Luhn-Validation

Primary LanguageJavaScript

Credit Card Luhn Validation

On this project you can validate a credit card number using the Luhn algorithm. The card logo will change depending on the card type.

Getting Started

To run this project locally, follow these steps:

  1. Clone this repo: git clone https://github.com/hecdeveloper/Credit-Card-Luhn-Validation.git
  2. Navigate to the project directory: cd luhn-validation
  3. Install the dependencies: npm install

Starting the React App

In the project directory, execute the following command to start the React app: npm start

Once started, the React app will be available at http://localhost:3000.

Starting the Node Server

  1. Open a new terminal window.
  2. Navigate to the server directory: cd server execute the following command node index.js

This will initiate the Node server on port 5000. The React app will communicate with this server for card validation.

Deployed Version

This project is deployed on Netlify.
A live version of the app is hosted and can be accessed here: https://creditcard-luhn-validation.netlify.app/