GithubHelp home page GithubHelp logo

csu-xiao-an / credit-site-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexeykorkoza/credit-site-server

0.0 1.0 0.0 1.43 MB

Server part

License: MIT License

JavaScript 99.37% HTML 0.63%

credit-site-server's Introduction

credit-site

Install

You must install all the packages:

$ npm run install

Configure

Before launching the backend you must create local.json near default.json. This file must be situated in config folder in the root of the project. Please, check default.json to set all necessary credentials correctly.

Run backend

You must go to the root of the project and enter the following command:

$ npm run dev:watch

Description

1. The application must support authentication by a pair of username and password.

2. To have a differentiation of access rights (Administrator, Manager)

administrator can:
  • create new users, - edit only Managers, - Change passwords for all Managers, - block the account of the Manager (the user can not enter the account),
  • edit all Clients - to change the territorial coefficient of the Client (3 territories, each has a percent surcharge factor of 0.5%, 1%, 1.5%), - can remove Clients   - can edit loans - can change the period for issuing a loan
manager can:
  • create a client
  • modify customer data
  • mark the client for deletion
  • create a loan
administrator can't:
  • create new customers
manager can't:
  • edit loan
  • can not change the territorial coefficient of the Client
  • receive information about other users
user can:
  • edit your attributes

4. Client attributes:

  • name (required field)
  • passport data (required field)
  • phone (required field)
  • email (required)
  • territory (is installed automatically from the client)

5. Manager, attributes (all fields are required):

  • full name
  • territory
  • phone
  • login
  • password
  • email

7. In case of an unsuccessful login of the manager in more than 4 times, the record is blocked

8. Each customer creates his own page (client card), it contains the following data:

  • full name
  • territory
  • phone
  • email
  • passport data
  • surcharge factor - amount of money given out

  And as there are 2 buttons; "Back" and "Issue a loan."

9. By clicking the button "Issue a loan" opens a new page with customer data

top of page

  - name of the client   - loans already issued   - the maturity date of each loan issued

below is a page on the loan issue form consisting of 5 fields:

  • loan amount
  • loan issuance ratio  (equal to the territorial coefficient, the manager can not change it when creating a manager's ratio is taken)
  • Date of issue of loan
  • Maturity date of the loan repayment (the manager can change it, but by default it is calculated for a period of 30 calendar days)
  • Total loan repayment amount.

Total is calculated according to the following principle:

Loan amount * coefficient + 1 calendar day of loan (equal to 1% of the premium to the total loan amount)

Example: 10 000 (loan) * 0.5% (amount) + 105 (days loan) = total

credit-site-server's People

Contributors

alexeykorkoza avatar

Watchers

 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.