mintlayer-challenge
๐ Simple displayer for data associated with a ticker
This application fetches the tickers list and history by Bitfinex API.
Some implementation highlights
- Since Bitfinex API doesn't allow requests by
localhost
(otherwise, we'll have a CORS error), we are usingwebpack-dev-server
to proxy the request. - We are using the package
swr
provides cache from the API, wrapped by the custom hookuseResource
. - Since this application is simple enough, the global state management is provided by React Context
Contribution
1 - Clone this repository
> git clone [email protected]:macabeus/mintlayer-challenge.git
> cd mintlayer-challenge
2 - Install its dependencies
> npm i
3 - Start the developer mode
> npm run start
4 - Build for production
> npm run build
Lint
> npm run lint