- Have node and npm installed
npm i
- This will install all dependencies
npm start
- This will run with the default configuration
npm run invest
- With this command configurations will be read from
config/config.json
, be sure to get create it using the template:config/config.json.template
- With this command configurations will be read from
npm run report
- See all reports that you have saved
npm run lint
- Checkfor styles, problems and errors
npm run lint-fix
- Fix some errors
- After runing
npm start
ornpm run invest
you will be asked to save the report, it will timeout in some seconds and wont be saved if not answered
- initialValue: How much money you will start with
- selic: how much is the selic rate right know
- Annual rate
- rentability: how much of the investment will the investor get
- workingDays: how much work days there are this year
- totalWeeks: how much time (in weeks) will the investor leave his money yielding
docker build -t <imageName> .
docker run <imageName>
npm test