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.