Git Product home page Git Product logo

exchange-rate's Introduction

Exchange Rate

A service that gives the latest and historical exchange rate for the currency.

https://exchange-rate-client.herokuapp.com/

Solutions

Front-end

A React Web Application for searching the latest and historical exchange rate.

  • Search rate by base currency
  • Filter target currency
  • Search rate with historical date

https://exchange-rate-client.herokuapp.com/

Back-end

A Clustered Express APIs for fetching data from Open Exchange Rate API.

https://exchange-rate-server.herokuapp.com/

APIs

Currency

Get list of currencies.

GET /currency
Rate

Get latest rate

GET /rate/latest
Field Type Description
base string Base currency (default: USD)

Get historical rate

GET /rate/historical/:date
Field Type Description
date string Date of Rate (YYYY-MM-DD)
base string Base currency (default: USD)

Architecture

React Web Application on Heroku <---> Clustered Node.js API on Heroku <---> Open Exchange Rate API

Technical Used

Front-end
Framework Reason
react Famous framework to create interactive UIs with a large community
Back-end
Framework Reason
express Fast and Simple framework to build web
throng Clustered Node.js apps in Heroku
jest Latest JavaScript testing framework with a large community
supertest HTTP assertions made easy with jest

Testing

  • Use Jest and Supertest to describe the test and defined the expected result
  • Use Travis CI to trigger the test when post-received
  • Will run tests under /server/tests/ directory
cd server
npm test

TODO

  • Caching
  • Notification when data update

exchange-rate's People

Contributors

pqab avatar dependabot[bot] 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.