{"id":19938631,"url":"https://github.com/sectore/purescript-truffle-pet-shop","last_synced_at":"2026-06-09T12:31:32.251Z","repository":{"id":66673199,"uuid":"129431953","full_name":"sectore/purescript-truffle-pet-shop","owner":"sectore","description":"Truffle's Pet Shop tutorial ported to PureScript","archived":false,"fork":false,"pushed_at":"2018-08-12T20:54:00.000Z","size":839,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T12:49:02.536Z","etag":null,"topics":["ethereum","halogen","purescript","web3js"],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sectore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-04-13T17:09:44.000Z","updated_at":"2018-10-23T21:26:41.000Z","dependencies_parsed_at":"2023-03-05T19:15:19.532Z","dependency_job_id":null,"html_url":"https://github.com/sectore/purescript-truffle-pet-shop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sectore/purescript-truffle-pet-shop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fpurescript-truffle-pet-shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fpurescript-truffle-pet-shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fpurescript-truffle-pet-shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fpurescript-truffle-pet-shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sectore","download_url":"https://codeload.github.com/sectore/purescript-truffle-pet-shop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fpurescript-truffle-pet-shop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34107865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["ethereum","halogen","purescript","web3js"],"created_at":"2024-11-12T23:41:24.048Z","updated_at":"2026-06-09T12:31:32.231Z","avatar_url":"https://github.com/sectore.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-truffle-pet-shop\n\n[Ethereum](https://ethereum.org/) based smart contract example by using [Cliquebait](https://github.com/f-o-a-m/cliquebait), [Chanterelle](https://github.com/f-o-a-m/chanterelle), [purescript-web3](https://github.com/f-o-a-m/purescript-web3) and other funny things. It's heavily inspired by original [Truffle's Pet Shop tutorial](http://truffleframework.com/tutorials/pet-shop).\n\n\u003cimg src=\"https://raw.githubusercontent.com/sectore/purescript-truffle-pet-shop/master/ps-screen.png\" width=\"60%\" height=\"60%\"\u003e\n\n\n# Installation\n\n- Install dependencies (only once)\n```bash\nyarn\n```\n\n# Run\n\n- Generate PureScript sources of contracts into folder `src/Contracts`\n```bash\nyarn generator\n```\n\n- Use [`cliquebait`](https://github.com/f-o-a-m/cliquebait) to have a running blockchain locally. Replace `METAMASK_ACCOUNT_ADDRESS` with the address of a MetaMask development account you want to use. _Note:_ You might run following command as `sudo`.\n```bash\ndocker run --rm -it -p 8545:8545 -v `pwd`/cliquebait.json:/cliquebait/cliquebait.json -e ACCOUNTS_TO_CREATE=3 -e EXTERNAL_ALLOCS=METAMASK_ACCOUNT_ADDRESS ALLOC_WEI=0xC08DE6FCB28B80000 foamspace/cliquebait:v1.8.11\n```\n\n- Deploy contract. With this step contract artifacts ([ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI)) will be created in folder `build/contracts/`. Also the contract address will be stored into `.env` file, which will be injected into Pet Shop application while running it.\n```bash\nyarn deploy\n```\n\n- Build PureScript sources of Pet Shop application\n```bash\npulp build\n```\n\n- Serve app\n```bash\nyarn start\n```\n\n- Open http://localhost:1234/\n\n# Tests\n\n1. Run [`cliquebait`](https://github.com/f-o-a-m/cliquebait) as described above\n\n2. Run tests\n```bash\nyarn test\n```\n\n# Acknowledge\n\n- [Truffle's Pet Shop tutorial](http://truffleframework.com/tutorials/pet-shop) written in `JS`\n- [purescript-web3-tests](https://github.com/f-o-a-m/purescript-web3-tests/) (`Chanterelle` and [purescript-web3](https://github.com/f-o-a-m/purescript-web3/) )\n- [parking-dao](https://github.com/f-o-a-m/parking-dao) (`Solidity` app using `Chanterelle`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fpurescript-truffle-pet-shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectore%2Fpurescript-truffle-pet-shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fpurescript-truffle-pet-shop/lists"}