- Vue app to get crypto currency price data from a CryptoCompare API.
- Note: to open web links in a new window use: ctrl+click on link
![GitHub last commit](https://camo.githubusercontent.com/a77473cc94389998add8c6c17472afc529bcb47c63870cf44a07cdf6473d66ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f416e647265774a426174656d616e2f7675652d6170702d63727970746f3f7374796c653d706c6173746963)
- Axios used to get API data.
- Data displayed using one-way data-binding and a v-for loop.
![Example screenshot](./img/mobile.png)
- 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
* 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)
});
}
- Status: Working.
- To-Do: add functionality. Try deploy again with correct build path
- This project is licensed under the terms of the MIT license.