https://github.com/andrewjbateman/vue-app-crypto
:clipboard: Vue app to display cryptocurrency api data
https://github.com/andrewjbateman/vue-app-crypto
api axios crypto cryptocompare-api cryptocurrency css3 html5 tutorial-code vue-cli3 vue-router vue2
Last synced: about 1 month ago
JSON representation
:clipboard: Vue app to display cryptocurrency api data
- Host: GitHub
- URL: https://github.com/andrewjbateman/vue-app-crypto
- Owner: AndrewJBateman
- Created: 2019-04-23T09:57:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:49:47.000Z (over 2 years ago)
- Last Synced: 2025-03-25T06:51:15.592Z (about 2 months ago)
- Topics: api, axios, crypto, cryptocompare-api, cryptocurrency, css3, html5, tutorial-code, vue-cli3, vue-router, vue2
- Language: Vue
- Homepage:
- Size: 780 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :zap: Vue App Crypto
* Vue app to get crypto currency price data from a [CryptoCompare API](https://min-api.cryptocompare.com/).
* **Note:** to open web links in a new window use: _ctrl+click on link_


## :page_facing_up: Table of contents
* [:zap: Vue App Crypto](#zap-vue-app-crypto)
* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal_strength: Technologies](#signal_strength-technologies)
* [:floppy_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status & To-Do List](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:envelope: Contact](#envelope-contact)## :books: General info
* Axios used to get API data.
* Data displayed using one-way data-binding and a v-for loop.## :camera: Screenshots

## :signal_strength: Technologies
* [Vue v2](https://vuejs.org/) framework
* [Vue Router v3](https://router.vuejs.org/) the official router for Vue.js
* [Vue CLI v3](https://cli.vuejs.org/) interface
* [Axios v0.21.0](https://github.com/axios/axios), a promise-based http client, is used to consume API data.
* [Vue DevTools extension for Chrome](https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd).## :floppy_disk: Setup
* Run `npm i` to install dependencies
* Run `npm run lint` to lint and autofix files
* Run `npm run test` to runs tests - no tests specified
* Run `npm run serve` then navigate to `http://localhost:8080/`. The app will automatically reload if you change any of the source files.
* Run `npm run build` to compile and minify for production## :computer: Code Examples
```javascript
* Extract from Hello.vue: function to get cryptocurrency data from the API
created () {
const fsymsList = 'BTC,XRP,BCH,ETH,ZEC,EOS,XMR,ETC,LTC,DASH,QTUM,NEO,XLM,TRX,ADA,BTS,USDT,XUC,PAX,IOT';axios.get('https://min-api.cryptocompare.com/data/pricemulti?fsyms=' + fsymsList + '&tsyms=USD')
.then(response => {
this.cryptos = response.data
console.log(response)
})
.catch(e => {
this.errors.push(e)
});
}```
## :cool: Features
* uses the new Vue3 CLI.
## :clipboard: Status & To-Do List
* Status: Working.
* To-Do: add functionality. Try deploy again with correct build path## :clap: Inspiration
* [Coursetro Vue.js CryptoCurrency Tutorial - Display Exchange Data with an API](https://www.youtube.com/watch?v=S0Zznlv1qnI)
## :file_folder: License
* This project is licensed under the terms of the MIT license.
## :envelope: Contact
* Repo created by [ABateman](https://github.com/AndrewJBateman), email: [email protected]