{"id":29439319,"url":"https://github.com/phantasma-io/explorerfrontend","last_synced_at":"2025-07-13T09:39:49.931Z","repository":{"id":302714706,"uuid":"770365155","full_name":"phantasma-io/ExplorerFrontend","owner":"phantasma-io","description":"Explorer Frontend","archived":false,"fork":false,"pushed_at":"2025-07-03T20:21:19.000Z","size":1853,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-03T21:27:46.192Z","etag":null,"topics":["blockchain","crypto","explorer","layer1","mui","next","phantasma","phantasmachain","react","typescript"],"latest_commit_sha":null,"homepage":"https://explorer-frontend-phantasmaio.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phantasma-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-03-11T12:30:45.000Z","updated_at":"2025-03-23T15:05:09.000Z","dependencies_parsed_at":"2025-07-03T21:28:49.587Z","dependency_job_id":"5f40c7ec-aef0-4751-a370-c992d363566f","html_url":"https://github.com/phantasma-io/ExplorerFrontend","commit_stats":null,"previous_names":["phantasma-io/explorerfrontend"],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/phantasma-io/ExplorerFrontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phantasma-io%2FExplorerFrontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phantasma-io%2FExplorerFrontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phantasma-io%2FExplorerFrontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phantasma-io%2FExplorerFrontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phantasma-io","download_url":"https://codeload.github.com/phantasma-io/ExplorerFrontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phantasma-io%2FExplorerFrontend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265121405,"owners_count":23714503,"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":["blockchain","crypto","explorer","layer1","mui","next","phantasma","phantasmachain","react","typescript"],"created_at":"2025-07-13T09:39:49.115Z","updated_at":"2025-07-13T09:39:49.925Z","avatar_url":"https://github.com/phantasma-io.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\n# Explorer Frontend\n\u003c/div\u003e\n\n## Installation with docker\n\n### User\n\nCreate user 'pha'. All following steps will be using this user and home directory '/home/pha'.\n\n### Docker\n\nInstall Docker according to the following instruction: https://docs.docker.com/engine/install/\n\nCreate folder for containers:\n```\nmkdir /home/pha/docker\n```\n\n### Frontend\n\nCreate following folder:\n```\nmkdir -p /home/pha/docker/explorer-frontend\n```\n\nCopy content of ExplorerFrontend/docker folder into /home/pha/docker/explorer-frontend.\n\nAdd file /home/pha/docker/explorer-frontend/.env with the following content:\n```\n# Github branch to be used\nBUILD_BRANCH=main\n```\nwhere 'main' is main github branch of backend project which we use for production deployment.\n\nLaunch frontend service from folder /home/pha/docker/explorer-frontend by either using sh script 'deploy.sh'\n```\ndeploy.sh\n```\nor by running commands\n```\ndocker compose pull\ndocker compose up -d\n```\n\n### Nginx\n\nSwitch to 'root' user or use sudo.\n\nInstall Nginx package.\n\nPlace list of Cloudflare IP addresses into this file:\n\n/etc/nginx/cloudflare-allow.conf\n\nContent for this file can be obtained here: https://www.cloudflare.com/ips\n\nSet these rights:\n```\nchmod 644 /etc/nginx/cloudflare-allow.conf\n```\n\nPlace phantasma.info certificate and certificate key into following locations:\n\n/etc/ssl/certs/cf-phantasma.info.pem\n\n/etc/ssl/private/cf-phantasma.info.key\n\nSet rights for these files\n\n```\nchmod 644 /etc/ssl/certs/cf-phantasma.info.pem\nchmod 600 /etc/ssl/private/cf-phantasma.info.key\n```\n\nAdd following file:\n```\n/etc/nginx/sites-available/explorer.phantasma.info\n```\n\nwith the following content:\n```\nserver {\n    listen        443 ssl;\n\n    include /etc/nginx/cloudflare-allow.conf;\n    deny all;\n\n    server_name explorer.phantasma.info;\n    ssl_certificate     /etc/ssl/certs/cf-phantasma.info.pem;\n    ssl_certificate_key /etc/ssl/private/cf-phantasma.info.key;\n    location / {\n        proxy_pass http://127.0.0.1:4500;\n        # https://nginx.org/en/docs/http/websocket.html\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n}\n```\n\nSet these rights:\n```\nchmod 644 /etc/nginx/sites-available/explorer.phantasma.info\n```\n\nCreate link with the following command:\n```\nln -s /etc/nginx/sites-available/explorer.phantasma.info /etc/nginx/sites-enabled/explorer.phantasma.info\n```\n\nTest Nginx configuration using command:\n```\nsudo nginx -t\n```\n\nRestart Nginx to apply changes:\n```\nsudo /etc/init.d/nginx restart\n```\n\n### Test frontend\n\nTo test if deployment was successful, following url can be used:\n\nhttps://explorer.phantasma.info/\n\n\n## Installation without docker\n\n### \u003cb\u003eRequirements\u003c/b\u003e\n\n\u003cb\u003eBaseline:\u003c/b\u003e\n\n- Display chains\n- Display addresses\n- Display blocks\n- Display transactions\n- Display contracts\n- Display tokens\n- Display DAOs\n- Search\n- Export CSV\n\n\u003cb\u003eExtra spice:\u003c/b\u003e\n\n- Refreshed design\n- Mobile friendly\n- Dark mode\n- White label\n- Localization\n- Data visualization\n- Component library with `storybook`\n- Unit tests with `jest` and `react-testing-library`\n- Integration / e2e tests with `cypress`\n- CI workflows with `github-actions`\n- CD workflows with `vercel`\n- Auto generated changelogs on release\n\n\u003cbr /\u003e\n\n\u003c/div\u003e\n\n### \u003cb\u003eScripts\u003c/b\u003e\n\n```tsx\n// install deps\nyarn install\n\n// run dev server\nyarn dev\n\n// build app\nyarn build\n\n// start app\nyarn start\n\n// export app\nyarn export\n\n// run lint\nyarn lint\n\n// run unit tests\nyarn test\n\n// run e2e tests\nyarn cy:run\n\n// run storybook\nyarn sb\n```\n\n\u003cbr /\u003e\n\n### \u003cb\u003eDev Dependencies\u003c/b\u003e\n\n- `Yarn`\n- `Typescript`\n- `React`\n- `Material-UI`\n- `Next`\n- `Prettier`\n- `ESLint`\n- `Commit Lint`\n- `Lint Staged`\n- `Husky`\n- `Jest`\n- `React Testing Library`\n- `Cypress`\n- `Storybook`\n- `Webpack`\n- `Semantic Release`\n\n\u003cbr /\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphantasma-io%2Fexplorerfrontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphantasma-io%2Fexplorerfrontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphantasma-io%2Fexplorerfrontend/lists"}