You must install all the packages:
$ npm run install
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.
You must go to the root of the project and enter the following command:
$ npm run dev:watch
- 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
- create a client
- modify customer data
- mark the client for deletion
- create a loan
- create new customers
- edit loan
- can not change the territorial coefficient of the Client
- receive information about other users
- edit your attributes
- name (required field)
- passport data (required field)
- phone (required field)
- email (required)
- territory (is installed automatically from the client)
- full name
- territory
- phone
- login
- password
- full name
- territory
- phone
- passport data
- surcharge factor - amount of money given out
And as there are 2 buttons; "Back" and "Issue a loan."
- name of the client - loans already issued - the maturity date of each loan issued
- 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