Coder Social home page Coder Social logo

hervera / quickcredit-backend Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 12.0 4 MB

Quick Credit is an online lending platform that provides short term soft loans to individuals. This helps solve problems of financial inclusion as a way to alleviate poverty and empower low income earners.

CSS 5.49% HTML 63.52% JavaScript 30.99%
es6-javascript nodejs express-framework restful-api endpoint-testing swagger-documentation loan-application loan-repayment-history repaid-loans expressjs

quickcredit-backend's Introduction

Quick Credit

Build Status Coverage Status Maintainability

Quick Credit is an online lending platform that provides short term soft loans to individuals. This helps solve problems of financial inclusion as a way to alleviate poverty and empower low income earners.

Github-pages

GitHub pages (gh-pages) of this project is accessed using this link Quick Credit.

Heruko Link

Quick Credit API documentation.

Features

  1. User (client) can sign up.
  2. User (client) can login.
  3. User (client) can request for only one loan at a time.
  4. User (client) can view loan repayment history, to keep track of his/her liability or responsibilities.
  5. Admin can mark a client as verified , after confirming his/her home and work address.
  6. Admin can view a specific loan application.
  7. Admin can approve or reject a client’s loan application.
  8. Admin can post loan repayment transaction in favour of a client.
  9. Admin can view all loan applications.
  10. Admin can view all current loans (not fully repaid).
  11. Admin can view all repaid loans.

Setup

  • You need to have git, NodeJS and npm installed on your local environment.
  • Clone the application with git clone command.
  • npm install to install all the dependencies in local environment
  • npm update to update the dependencies if new version available.

Dependencies

  • NodeJs Runtime environment that helps to run JavaScript not only in the browser even on the server.
  • Express NodeJS framework used for making the back-end.
  • Joi and Morgan API request body error validation and HTTP Request logger respectively.
  • body-parser Parse incoming requests.
  • swagger Open-source software framework that helps developers design, build, document, and consume RESTful Web services.

Getting Started

Starting application run the following npm scripts

  • npm start for starting the server.

Testing

When you need to test the application and view test coverage run:

  • npm test for running the tests, and
  • npm run coverage for getting the coverage summary.

API Endpoint

  • POST /api/v2/auth/signup Create user account.

  • POST /api/v2/auth/signin Login a user.

  • GET /api/v2/users Get all users.

  • GET /api/v2/users/<:user-id> Get a specific user.

  • PATCH /api/v2/users/<:user-email>/verify Mark a user as verified.

  • GET /api/v2/loans/<:loan-id Get a specific loan application.

  • GET /api/v2/loans?status=approved&repaid=false Get all current loans that are not fully repaid.

  • GET /api/v2/loans?status=approved&repaid=true Get all repaid loans.

  • GET /api/v2/loans Get all loan applications

  • GET /api/v2/loans/<:loan-id>/repayments View loan repayment history.

  • POST /api/v2/loans Create a loan application.

  • PATCH /api/v2/loans/<:loan-id> Approve or reject a loan application. Specify the status in the request’s body.

  • POST /api/v2/loans/<:loan-id>/repayment Create a loan repayment record.

quickcredit-backend's People

Contributors

dependabot[bot] avatar hervera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.