{"id":16335273,"url":"https://github.com/domenkozar/cardano-sl-explorer-frontend","last_synced_at":"2026-03-18T19:02:46.779Z","repository":{"id":137714927,"uuid":"81214596","full_name":"domenkozar/cardano-sl-explorer-frontend","owner":"domenkozar","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-15T16:47:28.000Z","size":980,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-12T09:23:47.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":false,"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/domenkozar.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":"2017-02-07T14:06:01.000Z","updated_at":"2023-01-24T18:24:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"14770306-a7cb-41ad-9772-8824b8621107","html_url":"https://github.com/domenkozar/cardano-sl-explorer-frontend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/domenkozar/cardano-sl-explorer-frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domenkozar%2Fcardano-sl-explorer-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domenkozar%2Fcardano-sl-explorer-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domenkozar%2Fcardano-sl-explorer-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domenkozar%2Fcardano-sl-explorer-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domenkozar","download_url":"https://codeload.github.com/domenkozar/cardano-sl-explorer-frontend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domenkozar%2Fcardano-sl-explorer-frontend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28741629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:40:51.112Z","status":"online","status_checked_at":"2026-01-25T02:00:06.841Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-10T23:40:38.644Z","updated_at":"2026-01-25T02:01:59.908Z","avatar_url":"https://github.com/domenkozar.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend of `cardano-sl-explorer`\n\n## Installation\n\nNote: [npm](https://www.npmjs.com/) is required.\n\n```bash\nnpm install\n```\n\n## Lenses\n\n\n### Generate frontend lenses\n\nFirst you have to create an executable of `purescript-derive-lenses`. This step has to be done only once.\n\n```bash\ngit clone git@github.com:paf31/purescript-derive-lenses.git /to/any/folder/on/your/machine/\ncd {/path/to/purescript-derive-lenses}\nstack build\nstack install install purescript-derive-lenses\n```\n\nAfter this check if `purescript-derive-lenses` has been properly installed.\n\n```bash\nwhich purescript-derive-lenses\n# should output something like this\n/Users/{your-user-name}/.local/bin/purescript-derive-lenses\n```\n\nGenerate lenses anytime if any content of `src/Explorer/Types/State.purs` or\n`src/Explorer/I18n/Types.purs` are changed as follow:\n\n```bash\n./scripts/generate-frontend-lenses.sh\n```\n\n### Generate types and lenses from `cardano-sl-explorer`\n\nBuild [`cardano-sl-explorer`](https://github.com/input-output-hk/cardano-sl-explorer) (only once):\n\n```bash\ncd {/path/to/cardano-sl-explorer}\nstack build --nix\n```\n\nGenerate types as follow:\n\n```bash\nstack --nix exec -- cardano-explorer-hs2purs --bridge-path {/path/to/cardano-sl-explorer-frontend}/src/Generated/\n```\n\nTo build lenses from it run\n\n```bash\ncd {/path/to/cardano-sl-explorer-frontend}\n./scripts/generate-backend-lenses.sh\n```\n\n\n## Run server locally\n\nNote: Make sure that you have generated all lenses as described in chapter [\"Lenses\"](#lenses).\n\nIn `development` mode (w/o minified files, but with source-map etc.):\n\n```bash\nnpm start # alias of `npm run server:dev`\n```\n\nOr in `production` mode (minified files etc.)\n\n```bash\nnpm run server:prod\n```\n\nOpen http://localhost:3000/\n\n\n## Build to ship (`production` mode)\n\nNote: Make sure that you have generated all lenses as described in chapter [\"Lenses\"](#lenses).\n\n```bash\nnpm run build:prod\n```\n\nAll generated files will be in `dist/`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomenkozar%2Fcardano-sl-explorer-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomenkozar%2Fcardano-sl-explorer-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomenkozar%2Fcardano-sl-explorer-frontend/lists"}