All Projects β†’ adrianmcli β†’ Truffle Next

adrianmcli / Truffle Next

πŸ›°οΈ A boilerplate Truffle Box project with Next.js for rapid Ethereum Dapp development

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to Truffle Next

Eth Vue
Featured in Awesome Vue [https://github.com/vuejs/awesome-vue], a curated list maintained by vuejs of awesome things related to the Vue.js framework, and Awesome List [https://awesomelists.net/150-Vue.js/3863-Open+Source/18749-DOkwufulueze-eth-vue], this Truffle Box provides everything you need to quickly build Ethereum dApps that have authentication features with vue, including configuration for easy deployment to the Ropsten Network. It's also Gravatar-enabled. Connecting to a running Ganache blockchain network from Truffle is also possible -- for fast development and testing purposes. Built on Truffle 5 and Vue 3, eth-vue uses vuex for state management, vuex-persist for local storage of app state, and vue-router for routing. Authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.
Stars: ✭ 171 (+31.54%)
Mutual labels:  ethereum, truffle, ethereum-contract
Angular Truffle Starter Dapp
Angular CLI + Truffle Starter Dapp; write, compile & deploy smart contracts on Ethereum blockchains
Stars: ✭ 174 (+33.85%)
Mutual labels:  ethereum, truffle, ethereum-contract
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+195.38%)
Mutual labels:  ethereum, truffle, ethereum-contract
Eth Random
commit-reveal RNG method in Ethereum
Stars: ✭ 79 (-39.23%)
Mutual labels:  ethereum, ethereum-contract
Supply Chain
Supply chain management on blockchain using Angular 4 + Truffle + IPFS + Ethereum
Stars: ✭ 76 (-41.54%)
Mutual labels:  ethereum, truffle
Etheno
Simplify Ethereum security analysis and testing
Stars: ✭ 77 (-40.77%)
Mutual labels:  ethereum, truffle
Awesome Ethereum Cn
Web3.js、Solidity、TruffleεΌ€ε‘ζ•™η¨‹εŠδ»₯ε€ͺεŠεΌ€ε‘θ΅„ζΊζ±‡ζ€»
Stars: ✭ 54 (-58.46%)
Mutual labels:  ethereum, truffle
Soltsice
Solidity & TypeScript Integration, Configuration and Examples
Stars: ✭ 94 (-27.69%)
Mutual labels:  ethereum, truffle
Trust Wallet Ios
πŸ“± Trust - Ethereum Wallet and Web3 DApp Browser for iOS
Stars: ✭ 1,228 (+844.62%)
Mutual labels:  ethereum, ethereum-contract
React Uport Box
Truffle, Webpack, React, Redux boilerplate with routing and authentication via a UPort.
Stars: ✭ 99 (-23.85%)
Mutual labels:  ethereum, truffle
Smart Contract Sanctuary
πŸ¦πŸŒ΄πŸŒ΄πŸŒ΄πŸ¦• A home for ethereum smart contracts. 🏠
Stars: ✭ 99 (-23.85%)
Mutual labels:  ethereum, ethereum-contract
Solidity Auction
A simple auction dApp for Ethereum, written in Solidity.
Stars: ✭ 60 (-53.85%)
Mutual labels:  ethereum, ethereum-contract
Kin Token
Kin token contracts.
Stars: ✭ 60 (-53.85%)
Mutual labels:  ethereum, truffle
Marketprotocol
Ethereum based derivatives trading protocol creating digital tokens for any asset
Stars: ✭ 78 (-40%)
Mutual labels:  ethereum, truffle
Ethereum Ico Contract
Tested Ethereum ICO Contract for Token Crowdsales
Stars: ✭ 59 (-54.62%)
Mutual labels:  ethereum, ethereum-contract
Rico
The Responsible Initial Coin Offering Framework
Stars: ✭ 83 (-36.15%)
Mutual labels:  ethereum, truffle
Web3 Vs Ethers
A basic cheatsheet of Web3.js vs Ethers (along w/ example apps!)
Stars: ✭ 103 (-20.77%)
Mutual labels:  ethereum, truffle
Truffle
A tool for developing smart contracts. Crafted with the finest cacaos.
Stars: ✭ 11,909 (+9060.77%)
Mutual labels:  ethereum, truffle
Eden Smart Contracts
EDEN - EDN Smart Token & Smart Contracts
Stars: ✭ 109 (-16.15%)
Mutual labels:  ethereum, ethereum-contract
Solidity
πŸ” Ethereum smart contracts developed for the Hanzo Platform.
Stars: ✭ 46 (-64.62%)
Mutual labels:  ethereum, ethereum-contract

Truffle and Next.js


comet

Rapid Ethereum Dapp Development

made for ethereum to the moon MIT license


A Minimal Smart Contract Development Boilerplate

Truffle is great for developing Solidity smart contracts, but building a React frontend for a smart contract is often a chore. 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.

There are two major features:

  • A plain truffle init project is used as the base (along with a SimpleStorage example contract).

  • 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.

For more information on how the frontend works, go read the README.md located in the client directory.

Installation

  1. Install Truffle globally.

    npm install -g truffle
    
  2. Download the box. This also takes care of installing the necessary dependencies.

    truffle unbox adrianmcli/truffle-next
    
  3. Run the development console.

    truffle develop
    
  4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.

    compile
    migrate
    
  5. Run the next.js server for the front-end. Smart contract changes must be manually recompiled and migrated.

    // Change directory to the front-end folder
    cd client
    // Serves the front-end on http://localhost:3000
    npm run dev
    
  6. 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.

    // If inside the development console.
    test
    
    // If outside the development console..
    truffle test
    

Running with MetaMask

Since truffle develop exposes the blockchain onto port 9545, you'll need to add a Custom RPC network of http://localhost:9545 in your MetaMask to make it work.

Running with TestRPC

We highly recommend using truffle develop over testrpc, but if you want to use testrpc, there are a couple things you need to do:

  • Change Line 6 of client/lib/getWeb3.js to use localhost:8545 instead of localhost:9545 so we refer to testrpc instead of truffle develop.

  • Run your testrpc with the following command (because reasons):

    testrpc --gasLimit 6721975 --gasPrice 100000000000
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].