See here.
Simple React JS project for a Loan Administrator. It is an introduction to use components, props and states.
-
Create a new folder where you want called loan-administrator
-
Open a new terminal (Ctrl+Shift+T or right click -> Open in new terminal)
-
Go to your project folder:
cd loan-administrator -
Clone this repository using:
git clone [email protected]:sebastiansperandio/loan-admin-react.git . -
Install dependencies:
npm install -
Run the project in local server:
npm start
If you want to deploy it into a server you could use:
npm run build
It will create a folder called /build in your repository. This folder is only you need to move to your server.
You could find the functions to calculate loans prices in /src/helpers.js file.
Default calculations:
Amount <= 1000 --> %25
Amount > 1000 and <= 5000 --> %20
Amount > 5000 and <= 10000 --> %15
Amount > 10000 --> %10
Period = 3 months --> %5
Period = 6 months --> %10
Period = 12 months --> %15
Period = 24 months --> %20
