{"id":19720469,"url":"https://github.com/xdagger/explorer","last_synced_at":"2025-08-03T14:37:55.762Z","repository":{"id":37580200,"uuid":"120987673","full_name":"XDagger/explorer","owner":"XDagger","description":"XDAG Block Explorer","archived":false,"fork":false,"pushed_at":"2025-02-26T23:16:41.000Z","size":19306,"stargazers_count":7,"open_issues_count":5,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T19:34:19.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/XDagger.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":"2018-02-10T05:31:16.000Z","updated_at":"2025-02-26T23:16:44.000Z","dependencies_parsed_at":"2023-02-08T08:16:03.638Z","dependency_job_id":"6ede6084-5dc4-4c9e-b4cd-d0c414f378f4","html_url":"https://github.com/XDagger/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/XDagger%2Fexplorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fexplorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fexplorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XDagger%2Fexplorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XDagger","download_url":"https://codeload.github.com/XDagger/explorer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251585752,"owners_count":21613274,"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-11-11T23:11:34.831Z","updated_at":"2025-04-29T21:30:53.227Z","avatar_url":"https://github.com/XDagger.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XDAG Block Explorer\nThis software provides a detailed view of the xdag network presented in a nice UI.\n\n# Features\n- network statistics and graphs\n- list of latest main blocks\n- mining calculator\n- balance checker\n- block details\n- API interface\n- responsive design\n\n# Installation on Ubuntu 24.04\n1. install, configure and run [XdagJ](https://github.com/XDagger/xdagj)\n2. `adduser explorer` - explorer runs as regular user, sudo premissions should not be given. Continue as root or as regular user with sudo permissions.\n3. install PHP8.4\n- `sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common`\n- `sudo add-apt-repository ppa:ondrej/php`\n- `sudo apt install php8.4-fpm php8.4-cli php8.4-bcmath php8.4-curl php8.4-gd php8.4-mbstring php8.4-mysql php8.4-opcache php8.4-readline`\n- create PHP-FPM pool: `nano /etc/php/8.4/fpm/pool.d/explorer.conf`\n```\n[explorer]\nuser = $pool\ngroup = $pool\nlisten = /run/php/php8.4-fpm-$pool.sock\n\nlisten.owner = www-data\nlisten.group = www-data\nlisten.mode = 0660\npm = dynamic\npm.max_children = 10\npm.start_servers = 3\npm.min_spare_servers = 1\npm.max_spare_servers = 4\n```\n- `sudo systemctl enable php8.4-fpm`\n- `sudo systemctl restart php8.4-fpm`\n4. install MySQL 8.0+\n- `sudo apt install mysql-server mysql-client`\n- `sudo mysql`\n- `ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '...............';` - choose a strong password\n- `exit`\n- `sudo mysql_secure_installation`\n5. configure MySQL 8.0+\n- `sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf`\n- add `disable_log_bin` at end of file\n- add `tmp_table_size = 2G` at end of file\n- add `max_heap_table_size = 2G` at end of file\n- `sudo systemctl enable mysql`\n- `sudo systemctl restart mysql`\n6. create database and MySQL user for explorer app\n- `sudo mysql -p` - enter root password\n- `CREATE USER explorer@'%' IDENTIFIED BY '...............';` - choose a strong password\n- `CREATE DATABASE explorer CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;`\n- `GRANT ALL ON explorer.* TO explorer@'%';`\n- `FLUSH PRIVILEGES;`\n- `exit`\n7. install [composer](https://getcomposer.org/download/)\n8. install NojdeJS 18\n- `curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -`\n- `sudo apt install -y nodejs`\n9. prepare explorer app\n- `sudo mkdir /var/www/explorer \u0026\u0026 sudo chown explorer:explorer /var/www/explorer`\n- as `explorer` user, change into `/var/www/explorer` folder\n- execute `git clone https://github.com/XDagger/explorer.git .`\n- execute `composer install`, `npm ci`, `npm run production`, `cp .env.example .env`, `php artisan key:generate`\n- edit `.env` and supply MySQL connection parameters and XdagJ RPC URL\n- execute `php artisan migrate`\n- add crontab entry: `* * * * * /usr/bin/php8.4 /var/www/explorer/artisan schedule:run \u003e\u003e /dev/null 2\u003e\u00261`\n10. install and configure nginx\n- `sudo apt install nginx`\n- replace default server: `truncate -s 0 /etc/nginx/sites-available/default`, `nano /etc/nginx/sites-available/default`\n```\nserver {\n\tlisten 80 default_server;\n\tlisten [::]:80 default_server;\n\tserver_name _;\n\n\tmerge_slashes off;\n\troot /var/www/explorer/public;\n\tindex index.php;\n\n\tlocation / {\n\t\ttry_files $uri $uri/ /index.php?$query_string;\n\t}\n\n\tlocation = /index.php {\n\t\tinclude fastcgi_params;\n\t\tfastcgi_read_timeout 320;\n\t\tfastcgi_param DOCUMENT_ROOT $realpath_root;\n\t\tfastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;\n\t\tfastcgi_pass unix:/run/php/php8.4-fpm-explorer.sock;\n\t}\n\n\tlocation = /favicon.ico {\n\t\taccess_log off;\n\t\tlog_not_found off;\n\t}\n\n\tlocation = /robots.txt {\n\t\taccess_log off;\n\t\tlog_not_found off;\n\t}\n}\n```\n- `sudo systemctl enable nginx`\n- `sudo systemctl restart nginx`\n10. optionally install Let's Encrypt certificate, configure https redirects\n\n# Updating to latest version\nAs `explorer` user, change into `/var/www/explorer` folder\n- `git pull`\n- `composer install`\n- `php artisan migrate`\n- `npm ci`\n- `npm run production`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdagger%2Fexplorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdagger%2Fexplorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdagger%2Fexplorer/lists"}