- 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
- Axios used to get API data.
- Data displayed using one-way data-binding and a v-for loop.
- 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.