Coder Social home page Coder Social logo

currency-convertor-main's Introduction

currency-convertor

Intial Project setup

  1. Traverse through the project directory
    cd currency_conversion

Run the project

  1. Start the project in docker
    docker-compose up -d --build   
  2. Stop the project in docker
    docker-compose down   

Intial Migrations

A migration script is present in the app/migrations 0001_intial.py, that helps in creating data after intialising the model.

Endpoints

  1. Api to convert currency

    http://localhost:8000/api/v1/convert_currency?source={source-currency-code}&target={source-currency-code}&amount={amount}
    

    example: http://localhost:8000/api/v1/convert_currency?source=USD&target=INR&amount=1000 source-currrency-code refers to code of the source currency target-currrency-code refers to code of the target currency amount refers to the amount that needs to be calculated

  2. Api to get last updated date of a currency

    http://localhost:8000/api/v1/last_updated/{currency-code}
    

    example: http://localhost:8000/api/v1/last_updated/{currency-code} currrency-code refers to code of the source currency

  3. Api to update the exchange rates

    http://localhost:8000/api/v1/update_exchange_rates
    

    example: http://localhost:8000/api/v1/update_exchange_rates

currency-convertor-main's People

Contributors

techbc1221 avatar

Watchers

 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.