This project is an MVP for a wallet service where users can create an account, fund their account, transfer funds to another user’s account, and withdraw funds from their account.
- Node.js
- TypeScript
- Express
- Knex.js
- MySQL
- Create an account
- Fund an account
- Transfer funds
- Withdraw funds
- Prevent onboarding of blacklisted users
- Clone the repository
- Install dependencies:
npm install - Set up the environment variables in
.envfile - Run the migrations:
npm run migrate - Start the server:
npm run start
POST /api/wallet/create-accountPOST /api/wallet/fund-accountPOST /api/wallet/transfer-fundsPOST /api/wallet/withdraw-funds
To run tests, use the following command:
npm run test