This is just a basic mock up app that validates credit card input.
You can see live version here
A client server app. Server is in nodejs using express web framework.
After running server locally (see How to run? section), once you open the app, you will see a credit card detail form. Upon submit it validates the input in the client side and if all input validations are ok it does a asynchronous request to server for credit card number check.
Server validates credit card number and returns isValid = ('true' || 'false' ) and Card type = ('Visa'||'Master Card'||'American Express'||'UnKnown')
- Clone the repository
$> git clone https://github.com/anoopmundathan/cc-check-app.git
$> cd cc-check-app
$> npm install
$> node server
- Open a browser and visit
localhost:3000