Giter Club home page Giter Club logo

get-the-credit-card's Introduction

get the credit card ๐Ÿ’ณ

this is a simple node.js project that provides information about credit cards through API calls. the application retrieves details about credit cards, including validity, scheme (VISA, MASTERCARD, AMEX), and, when available, the bank.

description

the goal is to retrieve a series of information on credit cards through API calls. the application should provide its consumers with the details about credit cards:

  • valid/not valid;
  • the scheme (i.e VISA, MASTERCARD or AMEX);
  • the bank when it is available.

step 1

create a REST API service that will reply to a GET call. The endpoint should look like this: this:

GET <web-server-address>/api/card-scheme/verify/<card-number>

in case of successful response, the returned object should look like this:

{
  "success": true
    "payload" : {
          "scheme": "visa",
          "type" : "debit",
          "bank" : "UBS"
        }
}

to obtain this information, you should use a 3rd party service, such as BinList.

step 2 (incomplete for now)

create a REST API service that will reply to a GET call. The endpoint should look like this:

GET <web-server-address>/api/card-scheme/stats?start=1&limit=3

in case of successful response, the returned object should look like this:

{
      "success": true
      "start": 1,
      "limit": 3,
      "size": 133,
      "payload": {
        "<card-xyz>": 5,
        "<card-jkl>": 4,
        "<card-bnm>": 1
      }
}

where size represents the byte of the payload. Inside the payload, provide the list of cards that were checked in the step 1 alongside the number of requests made for each card. You can store this information in memory or on a file.


how to use the project ๐Ÿš€

prerequisites

  • you should have Node.js installed.

installation

clone the repository:

git clone https://github.com/your-username/node-project_credit-card.git

for step 1:

  1. navigate to the project folder:
    cd step1_verify
  2. install dependencies:
    npm install express
    npm install axios
  3. run the project

for step 2

  1. Navigate to the project folder:
    cd step2_card-scheme
  2. Install dependencies:
    npm install express
  3. run the project

license ๐Ÿ“

This project is licensed under the MIT License.

contact ๐Ÿ“ฌ

if you have any further questions:

LinkedIn Gmail twitter

get-the-credit-card's People

Contributors

elifyagmurduran avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.