SETUP DATBASE MYSQL: With: user - walletplus database - walletplus password - wallet2021@
open the mysql console and write these commands:
CREATE DATABASE walletplus CREATE USER 'walletplus'@'localhost' IDENTIFIED BY 'wallet2021@'; GRANT ALL PRIVILEGES ON * . * TO 'walletplus'@'localhost'; FLUSH PRIVILEGES;
Installation:
- npm install or yarn install
- convert sample.env to .env
npm run dev
for development runningnpm start
to build to productionnpm run test
to runa unit tests
API:
POST auth/register: { "email": "rxa@live.com", "password": "password2020@", "first_name":"Tessa", "last_name":"Bond", "gender": "F" }
POST auth/login: { "email": "rxarinze@live.com", "password": "password2020@" }
POST transaction/fund-wallet:
Authorization Bearer Scheme
{
"amount": 600000,
"description": "Deposit from PayPal"
}
POST transaction/transfer: Authorization Bearer Scheme { "user": "rxa@live.com", "amount": 490000, "description": "Payment for services rendered" }
Get transaction/balance Authorization Bearer Scheme
Get transaction/:page Authorization Bearer Scheme