This project has created as the end project for Browsers module of Hack Your Future program.
- Show table of top 10 assets in Crypto market plus their info and price charts.
- Show all pairs listed on Binance crypto exchange and their Technical charts with all useful options.
- Show other market meta data include most trusted exchanges, most trend assets and other global data.
- Show top5 assets live price using Websockets.
To run this project locally you will need to open index.html
in your browser using a local server. LiveServer, http-server
, study-lenses
, or any other local static server will work.
There are no dependencies needed to run the website, everything is prepared to work with vanilla JavaScript. However, if you want to install prettier for this project then run (generally you always want to do this if you see a package.json
file):
npm install
Let's run through the folders:
public
src
βββ pages
| βββ HomePage.js
| βββ marketDataPage.js
| βββ technicalPage.js
| βββ categoriesInfoPage.js
βββ views
| βββ error.js
| βββ loadCategories.js
| βββ loadCatList.js
| βββ loadingSpin.js
| βββ loadLightChart.js
| βββ loadLivePrice.js
| βββ loadTechnicalChart.js
| βββ loadMarketData.js
| βββ loadmarketDataElement.js
| βββ navBarView.js
| βββ loadTechnicalChart.js
| βββ technicalChartView.js
| βββ topCoinsElement.js
| βββ topCoinsData.js
|
βββ app.js
βββ constants.js
βββ data.js
βββ router.js
index.html
public
this contains the static files that can be used by ourindex.html
filesrc
this contains all of our JavaScript codepages
this folder contains our functions that handle user interactions. You can also see it as the code that processes and updates the data or DOM it also contains our code that links up our handler code to the DOM.views
this contains code to define what the DOM will look like. They will create the DOM element and give it back. They should never read from/write to the dom, that is what the pages do.app.js
this file our initialization code. Generally this code should only run once and starts the applicationdata.js
this is our data model. Anything we need to store in the browser we place inside the data filerouter.js
this file will transition the app from one page to the other and clear the HTML.