Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.28 KB

README.md

File metadata and controls

45 lines (40 loc) · 1.28 KB

Interest Calculation

Project developed for a technical challenge/test

🚀 Challenge

Create a function that calculates the final value of an investment based on initial capital, interest rate, and investment time (in months). The program must prompt the user for these values and display the final value.

🛰️ Technologies

This project was developed with the following technologies:

  • Node.js
  • Express
  • Jest

💻 Installation / How to use

  • Clone this repository:
    git clone https://github.com/jairokoning/interest-calculation-api.git
  • Install dependencies:
    yarn install
  • Start the application
    yarn dev
  • Run tests
    yarn test
  • Execute http://localhost:3000/calculate on a API Client for REST (Insomnia, Postman...)
  • Send the investment information in the following format in the body of the post request for get the final value of investment
    {
     "initialCapital": 60000,
     "interestRate": 1.2,
     "investmentTime": 12
    }

Developed with 😀 and ❤️ by Jairo Koning