Skip to content

A Backend to a banking application, It offers functionalities for both users and admin.

Notifications You must be signed in to change notification settings

olawuwo-abideen/fintechapp

Repository files navigation

Fintech Application

A Backend to a banking application, It offers functionalities for both users and admin.

Built With:

  • typescript
  • mysql2
  • express
  • dotenv
  • axios
  • chalk
  • jsonwebtoken
  • moment
  • nodemailer
  • cors
  • sequelize
  • tsyringe
  • uuid
  • winston
  • yup
  • @sendgrid/mail
  • accesscontrol

Installation

  • clone the repository
git clone [email protected]:olawuwo-abideen/fintechapp.git
  • navigate to the folder
cd fintechapp.git

Run the app in development mode

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.

API Endpoints

Admin Endpoints

  • GET /users - Get all user
  • GET /user/:id - Get user by id
  • POST /user/status - Get user account status
  • GET /accounts - Get all accounts
  • GET /account/:id - Get user account by id
  • GET /transactions - Get user transaction
  • GET /loans - Get user loans
  • POST /loans/status - Approve or Decline User loan status

Account Endpoints

  • POST /create-account - Create user account
  • GET /accounts/:id - Get all accounts
  • POST /account/:id - Get account by id
  • GET /payee/list - Get all payee
  • GET /payee/:id - Get payee by id
  • POST /loans/application - User apply for loan
  • GET /loans/list - User apply loan list

Transaction Endpoints

  • POST /initiate-deposit - User deposit
  • POST /verify-deposit - User verify deposit
  • POST /transfer - User make transfer
  • POST /withdrawal - User make withdrawal
  • GET /transactions - Get user transactions
  • GET /transaction/:id - Get user transaction by id

User Endpoints

  • POST /register - User register
  • POST /login - User login
  • POST /forgot-password - User forget password
  • POST /reset-password - User update password
  • GET /account/:id - User account by id

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Authors

👤 Olawuwo Abideen

About

A Backend to a banking application, It offers functionalities for both users and admin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published