This web application validates credit card details, including card numbers, expiry dates, and CVV.
Both the backend and frontend are part of this project and are located in the same directory.
- Open a terminal and navigate to the project directory:
cd card-validation- Install backend dependencies using npm:
cd backend
npm install- To start the backend server:
npm startThe backend server will run on http://localhost:5000.
- Open new terminal to Install frontend dependencies using npm:
cd card-validation
npm install- To start the frontend server:
npm startThe 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.
The Credit validation algorithm Uses the renown Luhn algorithm the particular implentation can be found here. under the validateCardNumber function.