Coder Social home page Coder Social logo

henry-oberholtzer / currency-exchange Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.26 MB

A JS application to determine currency exchange rates based on the ExchangeRate-API

License: GNU General Public License v3.0

JavaScript 67.27% HTML 11.71% CSS 21.02%

currency-exchange's Introduction

Currency Exchange

A JS application to calculate an exchange rate between two currencies based on the ExchangeRate-API

By Henry Oberholtzer

Technologies Used

  • JavaScript
  • Bootstrap
  • HTML
  • CSS
  • Webpack
  • ExchangeRate-API

Description

User Stories

  • User should be able to enter an amount in USD
  • User should be able to specify a currency to convert to
  • User should recieve the USD amount converted to their currency of choice
  • User should have access to at least five different currencies
  • User should see a message in the DOM when an error is recieved
  • If a particular currency is not available to convert from, user should recieve a message in the DOM to that effect

Extra Features

  • Allow for converting between all currency types
  • Allow for conversion to and from USD
  • Cache API results
  • Dropdown menu for currencies

Technical Requirements

  • Application must make an API call
  • Application must parse data from the API call
  • Application must handle errors when the API does not retrun 200 OK status
  • Application must use a static method in a class
  • Application must seperate UI logic & business logic
  • Application must use webpack

Setup/Installation Requirements

  • A personal API key must first be obtained from ExchangeRate-API
  • Download the repository using git clone https://github.com/henry-oberholtzer/currency-exchange.git in terminal or downloading the ZIP folder from github
  • Create a ".env" file in the root folder containing API_KEY=YOURAPIKEYHERE
  • Run "npm install" in terminal in the root folder
  • To view the application, run npm run start

Known Bugs

  • Not mobile responsive
  • Queries that result in a number over 4 digits will break out of the UI.

Licenses & Attribution

Copyright Henry Oberholtzer (c) 2023

Code licensed under GNU GPLv3

Public Domain Images Used:

Woodcut of a cat from Provenance Online Project, 2011

IC55 P2759 587d from Provenance Online Project, 2011

currency-exchange's People

Contributors

henry-oberholtzer 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.