{"id":22406710,"url":"https://github.com/beldex-coin/beldex-explorer","last_synced_at":"2025-04-13T10:26:37.818Z","repository":{"id":45447322,"uuid":"370308329","full_name":"Beldex-Coin/beldex-explorer","owner":"Beldex-Coin","description":"Python based beldex explorer","archived":false,"fork":false,"pushed_at":"2024-08-23T10:01:52.000Z","size":131,"stargazers_count":3,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T01:48:13.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beldex-Coin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-24T10:08:32.000Z","updated_at":"2024-12-11T17:29:15.000Z","dependencies_parsed_at":"2023-02-10T23:15:26.565Z","dependency_job_id":"e73d9604-56ea-46d8-97bb-399e58429876","html_url":"https://github.com/Beldex-Coin/beldex-explorer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beldex-Coin%2Fbeldex-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beldex-Coin%2Fbeldex-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beldex-Coin%2Fbeldex-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beldex-Coin%2Fbeldex-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beldex-Coin","download_url":"https://codeload.github.com/Beldex-Coin/beldex-explorer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248697263,"owners_count":21147296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T11:09:51.350Z","updated_at":"2025-04-13T10:26:37.794Z","avatar_url":"https://github.com/Beldex-Coin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beldex-Explorer\nBlock explorer using Beldex 4+ LMQ RPC interface that does everything through RPC requests.  Sexy,\nawesome, safe.\n\n## Prerequisite packages \n\n    sudo apt install build-essential pkg-config libsodium-dev libzmq3-dev python3-dev python3-flask python3-babel python3-pygments python3-qrcode python3-pysodium python3-sha3 python3-base58\n\n## Building and running\n\nQuick and dirty setup instructions for now:\n\n    git submodule update --init --recursive\n    cd pylokimq\n    mkdir build\n    cd build\n    cmake ..\n    make -j6\n    cd ../..\n    ln -s pylokimq/build/pylokimq/pylokimq.cpython-*.so .\n    \n(Note that we require a very recent python3-jinja package (2.11+), which may not be installed by the\nabove.)\n\nYou'll also need to run beldexd with `--lmq-local-control ipc:///path/to/beldex-explorer/mainnet.sock`.\n\n## Running in debug mode\n\nTo run it in debug mode (production requires setting up a WSGI server, see below):\n\n    FLASK_APP=explorer flask run --reload --debugger\n\nThis mode seems to be a bit flakey, though -- reloading, in particular, seems to break things and\nmake it just silently exit after a while.\n\n## Setting up for production with uwsgi-emperor:\n\nDo all of the above, but instead of running it with flask, set up uwsgi-emperor as follows:\n\n    apt install uwsgi-emperor uwsgi-plugin-python3\n\nin `/etc/uwsgi-emperor/emperor.ini` add configuration of:\n\n    # vassals directory\n    emperor = /etc/uwsgi-emperor/vassals\n    cap = setgid,setuid\n    emperor-tyrant = true\n\nCreate a \"vassal\" config for beldex-explorer, `/etc/uwsgi-emperor/vassals/beldex-explorer.ini`, containing:\n\n    [uwsgi]\n    chdir = /path/to/beldex-explorer\n    socket = mainnet.wsgi\n    plugins = python3,logfile\n    processes = 4\n    manage-script-name = true\n    mount = /=mainnet:app\n\n    logger = file:logfile=/path/to/beldex-explorer/mainnet.log\n\nSet ownership of this user to whatever use you want it to run as, and set the group to `www-data` (so\nthat it can open the beldexd unix socket):\n\n    chown www-data:www-data /etc/uwsgi-emperor/vassals/beldex-explorer.ini\n\nIn the beldex-explorer/mainnet.py, beldex-explorer/config.py, set:\n\n    config.beldexd_rpc = 'ipc:///path/to/beldex-explorer/mainnet.sock'\n\n## Setting up for HTTP Server with Apache:\n \n Finally, proxy requests from the webserver to the wsgi socket.\n    \n    apt install apache2\n\n For Apache  `/etc/apache2/apache2.conf` do this with:\n\n    # Allow access to static files (e.g. .css and .js):\n    \u003cDirectory /path/to/beldex-explorer/static\u003e\n        Require all granted\n    \u003c/Directory\u003e\n    DocumentRoot /path/to/beldex-explorer/static\n\n    # Proxy everything else via the uwsgi socket:\n    ProxyPassMatch \"^/[^/]*\\.(?:css|js)(?:$|\\?)\" !\n    ProxyPass / unix:/path/to/beldex-explorer/mainnet.wsgi|uwsgi://uwsgi-mainnet-explorer/\n\n(you will probably need to `a2enmod proxy_uwsgi` to enable the Apache modules that make that work).\n\nThat should be it: restart apache2 and uwsgi-emperor and you should be good to go.  If you want to\nmake uwsgi restart (for example because you are changing things) then it is sufficient to `touch\n/etc/uwsgi-emperor/vassals/beldex-explorer.ini` to trigger a reload (you do not have to restart the\napache2/uwsgi-emperor layers).\n\nIf you want to set up a testnet or devnet explorer the procedure is essentially the same, but\nusing testnet.py or devnet.py pointing to a beldexd.sock from a testnet or devnet beldexd.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeldex-coin%2Fbeldex-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeldex-coin%2Fbeldex-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeldex-coin%2Fbeldex-explorer/lists"}