On this project you can validate a credit card number using the Luhn algorithm. The card logo will change depending on the card type.
To run this project locally, follow these steps:
- Clone this repo:
git clone https://github.com/hecdeveloper/Credit-Card-Luhn-Validation.git
- Navigate to the project directory:
cd luhn-validation
- Install the dependencies:
npm install
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.
- Open a new terminal window.
- Navigate to the server directory:
cd server
execute the following commandnode index.js
This will initiate the Node server on port 5000. The React app will communicate with this server for card validation.
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/