Giter Site home page Giter Site logo

currency's Introduction

Currency is a currency converter written in Angular.

Features

  • Convert multiple currencies at the same time
  • Rates come from http://xe.com/ (scrapped using my API)
  • Save selected currencies and typed value in localStorage

Building

The server task in gulpfile.js and the API server rely on a Koa server. Koa currently requires node 0.11.x for the harmony flag. Launch them with the following command:

# frontend environment
node --harmony-generators `which gulp` serve

# backend environment
node --harmony-generators api

API

Took down the endpoint because it does not respect the XE’s Terms of Use

GET /currencies
[
  {
    "code": "AED",
    "name": "Emirati Dirham"
  },
  {
    "code": "AFN",
    "name": "Afghan Afghani"
  },
  {
    "code": "ALL",
    "name": "Albanian Lek"
  },
  ...
]
  • GET /rate/:from/:to will return exchange rate between specified currencies.
    • :from three-character currency code
    • :to three-character currency code
GET /rate/xbt/eur
{
  "from": "XBT",
  "to": "EUR",
  "rate": 431.951,
  "timestamp": "2014-03-08T12:56:00.000Z"
}

Todos

  • Improve cross-browser compatibility
  • Reduce API calls on client side
  • Improve server implementation

Dependencies

References

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.