- git
- jq (sudo apt-get install jq)
- 1GB Space (~300MB for ./resources - ~800MB Temporary for fetching)
yarn
yarn init:blockchains_dir
yarn init:blockchains_db
yarn dev # nodemon
yarn start # node
JS file that exports variables to use in multiple files.
It contains CreateOrUpdateBlockchainsDatabase(resetCollection: boolean = true) => Promise
Run the file to reset the data collection and reinsert a new data, or import the function and use it somewhere else.
It contains deepReadDirectories(dirPath: string) => Array<any>
Import the function and specify the wanted path to export every directory inside.
It contains ExtractDirectories(type: string = "json")
Parameters: type: string
options: json | file
Run the file to export ./resources/blockchains
directories as JSON file at ./resources/directories.json
, or import the function and use it somewhere else with the parameter value json
.
It contains SyncBlockchainsDirectoryWithOrigin() => Promise
Run the file to update ./resources/blockchains
directories, or import the function and use it somewhere else to call for an update for ./resources/blockchains
.