This is a simple wallet api that credits and debits a wallet.
Testing, Error handling and a lot of other standard measures weren't taken into consideration while building this API
- NestJS
- MySQL
To run this API locally simply follow the instructions below:
You need to have or install the following:
- Git
- Node
- NestJS
- MySQL
-
clone repo
git clone https://github.com/LakunleD/finwallet.git -
run installation
npm install -
rename the file
.env.sampleto.envand fill in the appropriate details -
Run the migrations in the db/migrations folder
-
start app
npm run start:dev -
you can now make requests using postman
simply run the following command in your git bash or command line
npm run test
- POST /user: create a new user wallet.
- GET /user/:email: Fetches User wallet balance.
- POST /wallet/credit: Credit funds to the user wallet.
- POST /wallet/debit: Debits funds from the user wallet.
Olakunle Dosunmu @LakunleD