Giter VIP home page Giter VIP logo

currenpy's Introduction

Currenpy

serverless

Currency conversion service running on AWS Lambda using Serverless Framework.

The service exposes the following API endpoint:

Endpoint Description
GET /convert/{from}/{to}/{amount} Converts amount of from currency to to currency

Example:

GET /convert/usd/eur/250 will convert 250$ into Euros.

Response:

{
  from: "USD",
  text: "235.1825€",
  rate: 0.94073,
  to: "EUR",
  amount: 250,
  result: 235.18249999999998,
  time: "2017-04-13T19:57:26.385252 UTC"
}

Usage

Setup

Step Command Description
1. npm install -g serverless Install Serverless CLI
2. Set up an AWS account with admin permissions Documentation
3. npm install Installs dependencies (serverless-python-requirements)

Development

Step Command Description
1. virtualenv convert Create virtual environment
2. pip install -r requirements.txt Install dependencies

Deployment

sls deploy

Credits

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.