Develop a backend for a money lending application, similar to apps like Slice and KreditBee. Implement the following 4 APIs using MongoDB, Postman, and Node.js. Adding Comments to the logic is mandatory. APIs
Endpoint: POST /signup
- Approve or reject the application based on user age and monthly salary.
- Register the user after all verification.
- Maintain a status field to handle the user application status.
- Phone number
- Name
- Date of user registration
- Date of birth (DOB)
- Monthly salary
- User should be above 20 years of age.
- Monthly salary should be 25k or more.
Endpoint: GET /user Functionality: ● Show user data with the following fields: ○ Purchase Power amount ○ Phone number ○ Email ○ Date of user registration ○ DOB ○ Monthly salary
Endpoint: POST /borrow
- Allow the user to borrow money from the application.
- Update the Purchase Power amount.
- Calculate the tenure of repayments and the monthly repayments with an interest rate of 8%.
- Return the updated Purchase Power amount and the monthly repayment amount. Submission





