exchange-rate

This is AfterShip Git Challenge about Exchange Rate Solution and focus on back-end solution.

Usage no npm install needed!

<script type="module">
  import exchangeRate from 'https://cdn.skypack.dev/exchange-rate';
</script>

README

exchange-rate

This is AfterShip Git Challenge about Exchange Rate Solution and focus on back-end solution.

exchange-rate is a API server that delivering real-time exchange rate data around 170 counties. The server given mutiple endpoints and serving different use case. Endpoint functionalities include getting exchanged rate date for all or specificed set of currenicies, converting amounts from one currency to another, retrieving time series data for one or multiple currencies.

Outstanding

Due to time limitation, there are lots of fetaure and sercuirty haven't implment and I will list it one by one.

Feature:

  • Fluctuation (Provide the rate changes from start date to end date, also providing higest, lowest and average rate between the timeframe)
  • Front-end GUI Security:
  • User Authenication (A unique key assigned to each API account used to authenticate with the API)
  • MongoDB SSL Connection Monitoring:
  • Process Monitoring
  • API staus Automation
  • Automation Data Import

Artitecture

This solution was used three tier network architecture to design.

Image of architecture

Technologies

Language

  • Node.js (v8.10.0)

Libaray

  • express (4.16.3)
  • log4js (2.5.3)
  • mongoose (5.0.11)
  • uuid (3.2.1)

Libaray for development

  • chai (4.1.2)
  • chai-http (4.0.0)
  • mocha (5.0.5)
  • should (13.2.1)

Database

  • MongoDB (3.6)

Tool

  • PM2

API Specification