Skip to content

salissadiq/card-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit Card Validation App

This web application validates credit card details, including card numbers, expiry dates, and CVV.

Backend and Frontend Setup

Both the backend and frontend are part of this project and are located in the same directory.

Install Dependencies and start servers

  1. Open a terminal and navigate to the project directory:
cd card-validation
  1. Install backend dependencies using npm:
cd backend
npm install
  1. To start the backend server:
npm start

The backend server will run on http://localhost:5000.

  1. Open new terminal to Install frontend dependencies using npm:
cd card-validation
npm install
  1. To start the frontend server:
npm start

The development server will run on http://localhost:3000.

Accessing the Application Once both the backend and frontend servers are running, you can access the application by navigating to http://localhost:3000 in your web browser.

Credit card validation algorithm

The Credit validation algorithm Uses the renown Luhn algorithm the particular implentation can be found here. under the validateCardNumber function.

Valid credit card validation image

Image on valid card

Invalid credit card validation image

Image on invalid card

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published