Skip to content

onesmus1024/incourage-challenge

Repository files navigation

FUNDFLOW - A simple loan management system

Introduction

Fundflow is a simple loan management system that allows you to manage loans, borrowers, and payments. It is built using NODEJS, EXPRESS, and MSSQL.

Prerequisites

  • NodeJS
  • MSSQL
  • NPM
  • Git

Features

  • Add, Edit, and Delete Loans
  • Signup and Login
  • Credit Score Calculation

Installation

  1. Clone the repository

bash https://github.com/onesmus1024/incourage-challenge.git

  1. You will get five folders:

    • FundFlow-backend
    • fundflow-frontend
    • fundflow-cypress-test
    • fundflow-api-test
    • fundflow-background-service
    • README.md
  2. Navigate to the FundFlow-backend folder and install the dependencies

    bash cd FundFlow-backend

    bash npm install

  3. Install MSSQL and create a database called fundflow

  4. Create a .env file in the root of the FundFlow-backend folder and add the following environment variables

    PORT=3000
    DB_SERVER=your_db_server
    DB_USER=your_db_user
    DB_PASSWORD=your_db_password
    DB_DATABASE=fundflow
  5. Creating the tables, storedprocedures and triggers

    locate a file called seed.ts in the root of the FundFlow-backend folder and run the following command

    bash ts-node seed.ts

  6. Start the server

    bash npm start

  7. Navigate to the FundFlow-frontend folder and install the dependencies

    bash cd FundFlow-frontend

    bash npm install

  8. Create a .env file in the root of the FundFlow-frontend folder and add the following environment variables

    REACT_APP_API_URL=http://localhost:8080/api/v1
    PORT = 4200
  9. Start the frontend

    bash npm start

  10. Navigate to the FundFlow-cypress-test folder and install the dependencies

    bash cd FundFlow-cypress-test

    bash npm install

  11. Run the cypress tests

    bash npm run cypress:open

  12. Navigate to the FundFlow-api-test folder and install the dependencies

    bash cd FundFlow-api-test

    bash npm install

  13. Run the api tests

    bash npm test

  14. Navigate to the FundFlow-background-service folder and install the dependencies

    bash cd FundFlow-background-service

    bash npm install

  15. Start the background service

    bash npm start

Usage

  1. Signup and login to the application
  2. Apply for a loan
  3. Calculate your credit score

License

MIT

Author

Onesmus Wambugu

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published