mbart13 / cryptocurrency-api

Home Page:https://cryptocurrency-api.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cryptocurrency API

Links

Demo

Setup

To run this project locally, enter below commands:

yarn && yarn start

or

npm install && npm start

Notes

As per below note from CoinMarketCap docs, they are blocking HTTP requests from client side:

Making HTTP requests on the client side with Javascript is currently prohibited through CORS configuration. This is to protect your API Key which should not be visible to users of your application so your API Key is not stolen. Secure your API Key by routing calls through your own backend service.

I decided to create my own proxy

Additionally I implemented:

  • dark/light mode
  • saving theme preference to local storage
  • data refresh on tab/window refocus

About

https://cryptocurrency-api.vercel.app


Languages

Language:JavaScript 82.0%Language:CSS 10.4%Language:HTML 7.7%