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.
- Copy this download link: https://github.com/calliestump/Friday6.git
- Open bash and go to the directory where you would like to store your cloned project.
- Clone the repo.
git clone "https://github.com/calliestump/Friday6.git"
- Navigate to the cloned project folder and open VS code.
$ cd Desktop
$ cd [known directory]
$ code .
- Navigate to the VS terminal and download your dependencies with node.
npm install
- If you wish to run a live server run the following code:
npm run start
- 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.
- 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.
- Create a .env file in the "src" tab.
- Once your .env file is created, add your API Key to the file.
API_KEY=[generated key]
- 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!
- HTML
- CSS
- javaScript
- Bootstrap
- API
- Node
- Git
- Github
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 |
Copyright (c) 2020 Callie Stump