Skip to content

McKinley Rice coding assignment. ATM services API back-end and fronted implementation using Node JS and react JS

Notifications You must be signed in to change notification settings

nishant679/McKinley-Rice-ATM-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ATM

This application is developed using Nodejs install the following dependencies to install and run the application

install following dependencies node init -y

npm init

npm install express

##All the API have been tested using POSTMAN. follow the API documentation to learn more.

API Documentation

Note IP address is set to localhost and PORT number 30000 enabled for listning request. Change the router address according the server.

Register parameters Router: 127.0.0.1:3000/register

mandatory params card_number(eight digit number)
PIN (four digit PIN)
contact (ten digit mobile number)

Validate parameters Router: 127.0.0.1:3000/validate

mandatory params card_number(eight digit number)
PIN (four digit PIN)

Deposit Router 127.0.0.1:3000/deposit

mandatory params card_number(eight digit card number)
PIN (four digit PIN)
amount (Deposit amount)

Withdraw Router 127.0.0.1:3000/withdraw

mandatory params card_number(eight digit card number)
PIN (four digit PIN)
amount (Withdraw amount)

ATM cash refill Router 127.0.0.1:3000/atm

mandatory params name
PIN (four digit PIN)
n2000
n500
n100

Response error codes

300 : Invalid PIN
200 : Withdraw Limit Exceeded
100 : Invalid card number 
400 : card already registered
500 : invalid admin

About

McKinley Rice coding assignment. ATM services API back-end and fronted implementation using Node JS and react JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published