Project developed for a technical challenge/test
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.
This project was developed with the following technologies:
- Node.js
- Express
- Jest
- 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