{"id":18614846,"url":"https://github.com/andrewjbateman/react-app-cryptocurrency","last_synced_at":"2025-04-11T00:30:58.850Z","repository":{"id":42715467,"uuid":"155908032","full_name":"AndrewJBateman/react-app-cryptocurrency","owner":"AndrewJBateman","description":":clipboard: Shows prices of cryptocurrencies via an API. Uses the React library","archived":false,"fork":false,"pushed_at":"2023-03-14T22:20:50.000Z","size":1953,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T06:51:15.407Z","etag":null,"topics":["api-rest","axios","crypto","cryptocompare-api","cryptocurrencies","cryptocurrency","css3","html5","javascript","nodejs","reactjs"],"latest_commit_sha":null,"homepage":"https://andrewjbateman.github.io/react-app-cryptocurrency/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-02T18:41:54.000Z","updated_at":"2022-03-27T14:13:58.000Z","dependencies_parsed_at":"2023-02-08T04:31:08.873Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/react-app-cryptocurrency","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-app-cryptocurrency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-app-cryptocurrency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-app-cryptocurrency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-app-cryptocurrency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/react-app-cryptocurrency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322230,"owners_count":21084333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","axios","crypto","cryptocompare-api","cryptocurrencies","cryptocurrency","css3","html5","javascript","nodejs","reactjs"],"created_at":"2024-11-07T03:27:12.415Z","updated_at":"2025-04-11T00:30:55.753Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: React App Cryptocurrency\n\n* Crypto currency app using React\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/react-app-cryptocurrency?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/react-app-cryptocurrency?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/react-app-cryptocurrency?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/react-app-cryptocurrency?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: React App Cryptocurrency](#zap-react-app-cryptocurrency)\n\t* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n\t* [:books: General info](#books-general-info)\n\t* [:camera: Screenshots](#camera-screenshots)\n\t* [:signal_strength: Technologies](#signal_strength-technologies)\n\t* [:floppy_disk: Setup](#floppy_disk-setup)\n\t* [:computer: Code Examples](#computer-code-examples)\n\t* [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n\t* [:clap: Inspiration](#clap-inspiration)\n\t* [:file_folder: License](#file_folder-license)\n\t* [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Lists prices of cryptocurrencies against the US dollar - setup can be changed via http request.\n\n## :camera: Screenshots\n\n![Example screenshot](./img/crypto-api.png).\n\n## :signal_strength: Technologies\n\n* [Node.js v14](https://nodejs.org/) javascript runtime using the [Chrome V8 engine](https://v8.dev/).\n* [React v17](https://reactjs.org/) Javascript library.\n* [Axios v0.26.1](https://www.npmjs.com/package/axios) promise based HTTP client used to get crypto prices from axternal API.\n\n## :floppy_disk: Setup\n\n* API does not require an API key.\n* `npm start` Runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n* `npm run build` Builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\n\n## :computer: Code Examples\n\n* extract of `App.js` - axios http asynchronous call to cryptocurrency API.\n\n```javascript\n\n/*\nfunction will be carried out once app loads\naxios is promise-based so then function used\ncryptocompare returns price of 3 bitcoins compared to the US $.\n*/\ncomponentDidMount() {\n  const fsymsList = 'BTC,XRP,BCH,ETH,ZEC,EOS,XMR,ETC,LTC,DASH,QTUM,NEO,XLM,TRX,ADA,BTS,USDT,XUC,PAX,IOT'\n    axios\n      .get('https://min-api.cryptocompare.com/data/pricemulti?fsyms=' + fsymsList + '\u0026tsyms=USD')\n      .then(res =\u003e {\n      const cryptos = res.data;\n      console.log(cryptos);\n      this.setState({cryptos: cryptos});\n    });\n}\n\n```\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working. Deployed to Guthub-Pages\n* To-Do: Nothing\n\n## :clap: Inspiration\n\n* [Gary Simon of Coursetro: React CryptoCurrency Tutorial - Display Exchange Data with an API sept 2017](https://www.youtube.com/watch?v=18DkUJ669kc\u0026t=120s)\n* [CryptoCompare API](https://min-api.cryptocompare.com) for cryptocurrency prices.\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Freact-app-cryptocurrency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Freact-app-cryptocurrency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Freact-app-cryptocurrency/lists"}