{"id":18433163,"url":"https://github.com/yutasugimura/truffle-react-typescript","last_synced_at":"2025-06-22T14:04:06.391Z","repository":{"id":40705511,"uuid":"185566588","full_name":"YutaSugimura/truffle-react-typescript","owner":"YutaSugimura","description":"Truffle framework react-hooks Typescript","archived":false,"fork":false,"pushed_at":"2023-01-24T04:56:01.000Z","size":2552,"stargazers_count":8,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T19:39:25.247Z","etag":null,"topics":["ethereum","react","react-hooks","truffle","truffle-box","truffle-framework","typescript","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/YutaSugimura.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}},"created_at":"2019-05-08T08:40:15.000Z","updated_at":"2023-03-20T00:33:51.000Z","dependencies_parsed_at":"2023-01-28T16:01:13.326Z","dependency_job_id":null,"html_url":"https://github.com/YutaSugimura/truffle-react-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YutaSugimura/truffle-react-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutaSugimura%2Ftruffle-react-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutaSugimura%2Ftruffle-react-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutaSugimura%2Ftruffle-react-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutaSugimura%2Ftruffle-react-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YutaSugimura","download_url":"https://codeload.github.com/YutaSugimura/truffle-react-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutaSugimura%2Ftruffle-react-typescript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261304246,"owners_count":23138294,"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":["ethereum","react","react-hooks","truffle","truffle-box","truffle-framework","typescript","web3"],"created_at":"2024-11-06T05:32:09.502Z","updated_at":"2025-06-22T14:04:01.373Z","avatar_url":"https://github.com/YutaSugimura.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Truffle React Hooks TypeScript Template\n\nThis box comes with everything you need to start using smart contracts from a react app. This is as barebones as it gets, so nothing stands in your way.\n\n## Installation\n\n1. First of all, do a git clone to bring this repository locally\n    ```zsh\n    git clone https://github.com/YutaSugimura/truffle-react-typescript.git\n    ```\n\nDelete /test/simpleStorage.test.ts and /contracts/SimpleStorage.sol and create your own contract\n\n2. Installing truffle.\n    ```zsh\n     npm install -g truffle\n    ```\n\n3. Installing the library\n    ```zsh\n     yarn install\n     # or\n     npm i\n    ```\n\n4. Compiling Contracts.  \n    Compile the smart contract.\n    ```zsh\n    yarn compile\n    ```\n\n5. Run the development console.\n    ```javascript\n    truffle develop\n\n6. In the `client` directory, we run the React app. Smart contract changes must be manually recompiled and migrated.\n    ```zsh\n    # in another terminal (i.e. not in the truffle develop prompt)\n    cd client\n    # install dependencies\n    npm install\n    # or\n    yarn install\n    npm start\n    # or\n    yarn start\n    ```\n\n7. Using ethereum-waffle to test smart contracts\n    ```zsh\n    yarn test\n\n    # or\n    npm run test\n    ```\n\n8. Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.\n    ```zsh\n    # ensure you are inside the client directory when running this\n    npm run test\n    # or\n    yarn test\n    ```\n\n9. To build the application for production, use the build script. A production build will be in the `client/build` folder.\n    ```zsh\n    # ensure you are inside the client directory when running this\n    npm run build\n    # or\n    yarn build\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutasugimura%2Ftruffle-react-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutasugimura%2Ftruffle-react-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutasugimura%2Ftruffle-react-typescript/lists"}