A Backend to a banking application, It offers functionalities for both users and admin.
- typescript
- mysql2
- express
- dotenv
- axios
- chalk
- jsonwebtoken
- moment
- nodemailer
- cors
- sequelize
- tsyringe
- uuid
- winston
- yup
- @sendgrid/mail
- accesscontrol
- clone the repository
git clone [email protected]:olawuwo-abideen/fintechapp.git
- navigate to the folder
cd fintechapp.git
Open a terminal window session, or the equivalent on your machine, and enter the following command to install all the Node modules needed to run the app:
npm install
After doing an npm install
create dotenv files with the following params
PORT = 3000
APPNAME= appname
DB_USERNAME=username
DB_PASSWORD=password
DB_NAME=name
DB_HOST=localhost
DB_DIALECT=mysql
DB_PORT=3306
DB_ALTER=false
JWT_KEY=secret
MAIL_USER=mail user
MAIL_PASSWORD=mail password
PAYSTACK_SECRET_KEY= secretkey
PAYSTACK_CALLBACK_URL= callback url
and
npm start
This will start the app and set it up to listen for incoming connections on port 3000. Open up your browser of choice and go to the url
http://localhost3000:
to start using the app.
GET /users
- Get all userGET /user/:id
- Get user by idPOST /user/status
- Get user account statusGET /accounts
- Get all accountsGET /account/:id
- Get user account by idGET /transactions
- Get user transactionGET /loans
- Get user loansPOST /loans/status
- Approve or Decline User loan status
POST /create-account
- Create user accountGET /accounts/:id
- Get all accountsPOST /account/:id
- Get account by idGET /payee/list
- Get all payeeGET /payee/:id
- Get payee by idPOST /loans/application
- User apply for loanGET /loans/list
- User apply loan list
POST /initiate-deposit
- User depositPOST /verify-deposit
- User verify depositPOST /transfer
- User make transferPOST /withdrawal
- User make withdrawalGET /transactions
- Get user transactionsGET /transaction/:id
- Get user transaction by id
POST /register
- User registerPOST /login
- User loginPOST /forgot-password
- User forget passwordPOST /reset-password
- User update passwordGET /account/:id
- User account by id
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
👤 Olawuwo Abideen
- GitHub: @Olawuwo Abideen
- Twitter: @Olawuwo Abideen
- LinkedIn: @Olawuwo Abideen