An open API service indexing awesome lists of open source software.

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

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_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/vue-app-crypto?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/vue-app-crypto?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/vue-app-crypto?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/vue-app-crypto?style=plastic)

## :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

![Example screenshot](./img/pc.png)
![Example screenshot](./img/mobile.png)

## :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]