Coder Social home page Coder Social logo

epicodusfriday6's Introduction

Currency Exchange

11.20.20

By Callie Stump


Description

This project will allow the user to enter a U.S dollar amount, then convert it to a different currency. The user is allowed five different conversions.

Setup

  1. Copy this download link: https://github.com/calliestump/Friday6.git
  2. Open bash and go to the directory where you would like to store your cloned project.
  3. Clone the repo.
git clone "https://github.com/calliestump/Friday6.git"
  1. Navigate to the cloned project folder and open VS code.
$ cd Desktop
$ cd [known directory]
$ code .
  1. Navigate to the VS terminal and download your dependencies with node.
npm install
  1. If you wish to run a live server run the following code:
npm run start
  1. To see if the program is functioning properly you can use:
npm run build

This will show you if everything is compiling correctly; if otherwise you be will prompt with error messages.

  1. In order to run the tests for functionality, run the following code:
npm run test

Dont forget that in order to push any changes you need to add your own GitHub repo. to your project.

git remote add origin https://github.com/calliestump/Friday6

API Instructions

User will need to have an Exchange Rate API key. Follow the instructions to make a personal key. Once finished, use the generated link supplied for the API.

  1. Create a .env file in the "src" tab.
  2. Once your .env file is created, add your API Key to the file.
API_KEY=[generated key]
  1. Now that your .env file is ready, we can add it to our .gitignore file it so it doesnt get pushed to GitHub.
node_modules/
.DS_Store
dist/
coverage/
.env <-

You now have a working API Key that is connected to your webpage. Congratulations!

Technologies Used

  • HTML
  • CSS
  • javaScript
  • Bootstrap
  • API
  • Node
  • Git
  • Github

Specs

Expand Specs
Test Input Output Completed
Should clear input fields when form is submitted.. clear(); Input fields 1&2 are empty True
Should correctly convert the users input (USD) to any implemented currency. $8.00USD $10.48 True
Should return API error if a call to it fails. $4.00USD ERROR: Invalid API Key assignment True
Should give an alert if no information is detected. -- ERROR: No information was detected True

Legal

Copyright (c) 2020 Callie Stump

epicodusfriday6's People

Contributors

calliestump 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.