/democredit

Demo Credit Backend Service

Primary LanguageTypeScript

LendSQR Backend Wallet Service By Abijah Johnnie

A NodeJS(Expressjs) + Typescript + KnexJS wallet service using the Karma API to lookup potential users before onboarding with simple deposit, withdrawal and transfer features

Installation

first, clone the project then open the project file and run the command below

npm install
npm run start

ER-DIAGRAM URL

Click to view ER-diagram

Available APIS

AUTHENTICATION WITH JWT

Register

method: POST
URL: /auth/register
payload: {
firstname: "",
lastname: "",
email: "",
phone: "",
password: ""
}

Login

method: POST
URL: /auth/login
payload: {
email: "",
password: ""
}

Profile

method: GET
URL: /user/profile

Deposit

method: POST
URL: /wallet/deposit
payload: {
amount: "",
}

Withdrawal

method: POST
URL: /wallet/withdrawal
payload: {
amount: "",
narration: "",
account_number: "",
bank_code: ""
}

Transfer

method: POST
URL: /wallet/transfer
payload: {
amount: "",
phone: ""
}
NOTE: phone is the transfer payload is the recipient phone number and it must exist in the system.

License

MIT