Table of Contents
This is IBAN code validation API written in Node Js.
- API server runs on 3000 port. Port number can be configured in server.js file.
- After server starts, API can be accessed at localhost:3000.
- API has one endpoint /ibanvalidation/:params
- Params can be one IBAN code, or many codes separated with comma. Example: /ibanvalidation/LT487044060008228908,LT487044060008228909,...,N
- API returns a JSON object that can be used in a backend or frontend applications.
- JSON structure: [{"iban":"LT487044060008228908","validity":true},{"iban":"AD1400080001001234567891","validity":false}]
- Validation algorithm runs asynchronously so it doesn't block server and allows API requests for many users.
- To test how API works after installation and run instructions simply enter http://localhost:3000/ibanvalidation/LT487044060008228908,LT487044060008228909 in your browser and press Enter. API will return JSON object with results.
- There are unit tests for validation algorithm functions.
The section below shows a list of used technologies and libraries.
This is an example of how you may set up project locally.
To get a local copy up and running follow these simple Installation steps.
- Download code from:
https://github.com/leopardcoder/ibanvalidation
- Run NPM packages
npm install
- Run:
node server.js
For tests run:
npm test/ibanValidation-main/the root folder/ibanValidation-main/data/list of IBAN length with country codes./ibanValidation-main/src/validation algorithm source file and test file./ibanValidation-main/routes/ibanValidation route source file.
Linas Mockus - linas.mockus@gmail.com
Project Link: [https://github.com/leopardcoder/ibanValidation)