This is a wallet test based project, that allow users to register, fund wallet, transfer funds to other users and withdraw fund.
-
Clone the Repository:
git clone git@github.com:Prono96/lendsqr_wallet.git
-
Install Dependencies: Ensure you have Node.js and npm (Node Package Manager) installed. Then run:
npm install
-
Compile TypeScript: Compile the TypeScript code to JavaScript, you can compile directly using the TypeScript compiler:
npm run build
-
To Run Test:
npm test
npm run db:migration OR knex migration:latest
REGISTER USERS
POST: https://promise-prince-lendsqr-be-test.vercel.app/api/users
FUND WALLET
POST: https://promise-prince-lendsqr-be-test.vercel.app/api/fund
TRANSFER FUNDS
POST: https://promise-prince-lendsqr-be-test.vercel.app/api/transfer
WITHDRAW FUNDS
POST: https://promise-prince-lendsqr-be-test.vercel.app/api/withdraw
DELETE USER
DELETE: https://promise-prince-lendsqr-be-test.vercel.app/api/delete-user