{"id":16597227,"url":"https://github.com/adrianmcli/truffle-next-monorepo","last_synced_at":"2025-08-13T15:35:22.012Z","repository":{"id":73736906,"uuid":"111490187","full_name":"adrianmcli/truffle-next-monorepo","owner":"adrianmcli","description":"temp only, delete this repo later","archived":false,"fork":false,"pushed_at":"2017-11-21T02:48:45.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T05:25:37.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/adrianmcli.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-11-21T02:48:07.000Z","updated_at":"2017-11-21T02:48:46.000Z","dependencies_parsed_at":"2023-04-01T10:36:22.372Z","dependency_job_id":null,"html_url":"https://github.com/adrianmcli/truffle-next-monorepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrianmcli/truffle-next-monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Ftruffle-next-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Ftruffle-next-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Ftruffle-next-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Ftruffle-next-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianmcli","download_url":"https://codeload.github.com/adrianmcli/truffle-next-monorepo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianmcli%2Ftruffle-next-monorepo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260684178,"owners_count":23046103,"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-10-11T23:55:16.467Z","updated_at":"2025-06-19T04:09:04.072Z","avatar_url":"https://github.com/adrianmcli.png","language":"JavaScript","readme":"# A minimal Truffle and Next.js Boilerplate\n\n[Truffle](https://github.com/trufflesuite/truffle) is great for developing Solidity smart contracts, but building a React frontend for a smart contract is often a chore. [Next.js](https://github.com/zeit/next.js) is one of the easiest ways to build such a frontend and the integration between Truffle and Next.js is what this boilerplate is trying to demonstrate.\n\nThere are two major features:\n\n- A plain `truffle init` project is used as the base (along with a SimpleStorage example contract).\n\n- A Next.js project resides in the `client` directory with a symlink to the output folder of the contract ABI definitions. The Next.js app also provides a simple skeleton for connecting to and interacting with the smart contract on a network.\n\n## Installation\n\n1. Install Truffle globally.\n    ```bash\n    npm install -g truffle\n    ```\n\n2. Download the box. This also takes care of installing the necessary dependencies.\n    ```bash\n    truffle unbox adrianmcli/truffle-next\n    ```\n\n3. Run the development console.\n    ```bash\n    truffle develop\n    ```\n\n4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with `truffle`.\n    ```bash\n    compile\n    migrate\n    ```\n\n5. Run the next.js server for the front-end. Smart contract changes must be manually recompiled and migrated.\n    ```bash\n    // Change directory to the front-end folder\n    cd client\n    // Serves the front-end on http://localhost:3000\n    npm run dev\n    ```\n\n6. Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.\n    ```bash\n    // If inside the development console.\n    test\n\n    // If outside the development console..\n    truffle test\n    ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmcli%2Ftruffle-next-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianmcli%2Ftruffle-next-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianmcli%2Ftruffle-next-monorepo/lists"}