Fundflow is a simple loan management system that allows you to manage loans, borrowers, and payments. It is built using NODEJS, EXPRESS, and MSSQL.
- NodeJS
- MSSQL
- NPM
- Git
- Add, Edit, and Delete Loans
- Signup and Login
- Credit Score Calculation
- Clone the repository
bash https://github.com/onesmus1024/incourage-challenge.git
-
You will get five folders:
- FundFlow-backend
- fundflow-frontend
- fundflow-cypress-test
- fundflow-api-test
- fundflow-background-service
- README.md
-
Navigate to the FundFlow-backend folder and install the dependencies
bash cd FundFlow-backend
bash npm install
-
Install MSSQL and create a database called
fundflow
-
Create a
.env
file in the root of the FundFlow-backend folder and add the following environment variablesPORT=3000 DB_SERVER=your_db_server DB_USER=your_db_user DB_PASSWORD=your_db_password DB_DATABASE=fundflow
-
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
-
Start the server
bash npm start
-
Navigate to the FundFlow-frontend folder and install the dependencies
bash cd FundFlow-frontend
bash npm install
-
Create a
.env
file in the root of the FundFlow-frontend folder and add the following environment variablesREACT_APP_API_URL=http://localhost:8080/api/v1 PORT = 4200
-
Start the frontend
bash npm start
-
Navigate to the FundFlow-cypress-test folder and install the dependencies
bash cd FundFlow-cypress-test
bash npm install
-
Run the cypress tests
bash npm run cypress:open
-
Navigate to the FundFlow-api-test folder and install the dependencies
bash cd FundFlow-api-test
bash npm install
-
Run the api tests
bash npm test
-
Navigate to the FundFlow-background-service folder and install the dependencies
bash cd FundFlow-background-service
bash npm install
-
Start the background service
bash npm start
- Signup and login to the application
- Apply for a loan
- Calculate your credit score