Code Monkey home page Code Monkey logo

bank-server's Introduction

Bank Server Side

A REST service that can fetch bank details, using the data given in the API’s query parameters.

Tech Stack

  • Nodejs
  • PostgreSQL

API

  1. Autocomplete API to return possible matches based on the branch name ordered by IFSC code.

    • Endpoint: /api/branches/autocomplete?q=<>
    • Example: /api/branches/autocomplete?q=MUMBAI
                [
           {
             "ifsc": "ABNA0100310",
             "bank_id": "110",
             "branch": "BRADY HOUSE  MUMBAI",
             "address": "BRADY HOUSE,14 VEER NARIMAN ROAD,FORT, MUMBAI - 400023",
             "city": "MUMBAI",
             "district": "GREATER BOMBAY",
             "state": "MAHARASHTRA",
             "bank_name": "THE ROYAL BANK OF SCOTLAND N V"
           },
           {
             "ifsc": "ABNA0100335",
             "bank_id": "110",
             "branch": "JUHU  MUMBAI",
             "address": "GROUND & FIRST FLOOR, DURU HOUSE, JUHU TARA ROAD, JUHU, MUMBAI - 400049",
             "city": "MUMBAI",
             "district": "GREATER BOMBAY",
             "state": "MAHARASHTRA",
             "bank_name": "THE ROYAL BANK OF SCOTLAND N V"
           },
           {
             "ifsc": "ABNA0200001",
             "bank_id": "110",
             "branch": "SAKHAR BHAVAN  MUMBAI",
             "address": "SAKHAR BHAVAN, NARIMAN POINT,MUMBAI - 400021.",
             "city": "MUMBAI",
             "district": "GREATER BOMBAY",
             "state": "MAHARASHTRA",
             "bank_name": "THE ROYAL BANK OF SCOTLAND N V"
           },
           {
             "ifsc": "ABNA0NEFT02",
             "bank_id": "110",
             "branch": "LOWER PAREL WEST MUMBAI",
             "address": "ABN AMRO BANK,414 EMPIRE COMPLEX,SENAPATI BAPAT MARG LOWER PAREL WEST MUMBAI 400013",
             "city": "MUMBAI",
             "district": "MUMBAI",
             "state": "MAHARASHTRA",
             "bank_name": "THE ROYAL BANK OF SCOTLAND N V"
           },
           {
             "ifsc": "ALLA0210182",
             "bank_id": "11",
             "branch": "FORT BRANCH  MUMBAI",
             "address": "37, MUMBAI SAMACHAR MARG, FORT, MUMBAI",
             "city": "MUMBAI",
             "district": "GREATER MUMBAI",
             "state": "MAHARASHTRA",
             "bank_name": "ALLAHABAD BANK"
           }
         ]
  2. Search API to return possible matches across all columns and all rows, ordered by IFSC code (ascending order).

    • Endpoint: /api/branches?q=<>
    • Example: /api/branches?q=Bangalore
[
  {
    "ifsc": "ABNA0100318",
    "bank_id": "110",
    "branch": "BANGALORE",
    "address": "PRESTIGE TOWERS', GROUND FLOOR, 99 & 100, RESIDENCY ROAD, BANGALORE 560 025.",
    "city": "BANGALORE",
    "district": "BANGALORE URBAN",
    "state": "KARNATAKA",
    "bank_name": "THE ROYAL BANK OF SCOTLAND N V"
  },
  {
    "ifsc": "ADCB0000002",
    "bank_id": "143",
    "branch": "BANGALORE",
    "address": "CITI CENTRE, 28, CHURCH STREET, OFF M. G. ROAD BANGALORE 560001",
    "city": "BANGALORE",
    "district": "BANGALORE URBAN",
    "state": "KARNATAKA",
    "bank_name": "ABU DHABI COMMERCIAL BANK"
  },
  {
    "ifsc": "ALLA0210217",
    "bank_id": "11",
    "branch": "K. G. ROAD",
    "address": "NO. 2, FKCCI BUILDING , K G ROAD , BANGALORE",
    "city": "BANGALORE",
    "district": "BANGALORE URBAN",
    "state": "KARNATAKA",
    "bank_name": "ALLAHABAD BANK"
  }
]

Installation:

  • clone the repo and cd inside
  • Run npm install
  • Run nodemon index.js

bank-server's People

Contributors

debck 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.