Giter Club home page Giter Club logo

grao-challenge's Introduction

Grão Challenge

Prerequisites

  • Have node and npm installed
  • npm i
    • This will install all dependencies

Running

  • 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
  • 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

Saving reports

  • After runing npm start or npm run invest you will be asked to save the report, it will timeout in some seconds and wont be saved if not answered

Configuration

  • 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

  • docker build -t <imageName> .
  • docker run <imageName>

Testing

  • npm test

grao-challenge's People

Contributors

luipronto avatar

Watchers

James Cloos avatar Lui Franco Rocha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.