This an API built for a demo credit wallet for the Lendsqr backend engineer assessment. Users can deposit, transfer and withdraw funds with a single wallet.
- Transfers have to be done to another user on demo credit
- To send to users outside demo credit, make a withdrawal of the amount to the users account number
To get a local copy up and running follow these simple example steps.
- Node 18.13
- Clone the repo
git clone https://github.com/oseughu/demo-credit.git
- Install NPM packages
npm install
- Enter your environment variables in a
.env
file you will create
NODE_ENV=development
SECRET= # FOR SESSIONS AND JWT
PORT=3000
USER_PASSWORD= # FOR HASHING USER PASSWORD WHEN SEEDING
DB_CLIENT= # pg mysql mysql2
DB_URI_DEV=
DB_URI_PROD=
DB_URI_TEST=
- Run Tests
npm test
Twitter - @oseughu Email - [email protected]
Project Link: https://github.com/oseughu/demo-credit