GithubHelp home page GithubHelp logo

tdd-ws's Introduction

System description

The system allows to make currency conversion requests. For each request, the users specifies the source currency, the target currency and the amount they want to convert.

The system must validate data for invalid values, such as malformed currency code, negative amounts.

Whenever a request for a not existing currency is done, the system must return an error messsage and the administrator must be notified via email.

Any request done in the morning (A.M. hours) must be rejected.

It should be possible to use both database and api calls to http REST service as conversion source. The conversion source could be optionally cached.

When using a database, a CSV file containing data could be imported to feed the table. Such functionality can be used from both an http endpoint and a console command

Required tests

  • (x) it can convert amounts between arbitrary currencies
  • (x) it validates currency conversion requests data
  • (x) if a conversion for a not existing currency is requested, an error message with 404 status is returned
  • (x) if a conversion for a not existing currency is requested, an email is sent to the admin
  • (x) it blocks requests in A.M. hours
  • (x) it allows requests in P.M. hours
  • (x) it can convert between two currencies using db
  • (x) it can convert between two currencies using api
  • (x) it can convert between two currencies using cache
  • (x) it can import CSV files into database
  • (x) It can import CSV conversions from file upload
  • (x) It can import CSV conversions from command line

tdd-ws's People

Contributors

robertogallea avatar

Stargazers

Taras avatar

Watchers

 avatar

Forkers

andreamarzilli

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.