All Projects → adrianmcli → truffle-react

adrianmcli / truffle-react

Licence: other
⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to truffle-react

etherbrite
🗓 Clone eventbrite on Ethereum, built in Solidity, TruffleJS, Web3js and React/Redux.
Stars: ✭ 19 (-57.78%)
Mutual labels:  truffle, ethereum-contract, truffle-framework
solidity-contracts
📦 Resources for the Ethereum Smart Contract Development tutorial series.
Stars: ✭ 64 (+42.22%)
Mutual labels:  truffle, ethereum-contract, truffle-framework
ethereum-contracts
Knowledge Ethereum Smart Contracts
Stars: ✭ 41 (-8.89%)
Mutual labels:  truffle, ethereum-contract
LogoVote2017
Collection of smart contract samples
Stars: ✭ 24 (-46.67%)
Mutual labels:  truffle, ethereum-contract
Truffle Next
🛰️ A boilerplate Truffle Box project with Next.js for rapid Ethereum Dapp development
Stars: ✭ 130 (+188.89%)
Mutual labels:  truffle, ethereum-contract
pyrrha-consensus
Core set of Ethereum contracts for Pandora Boxchain functioning
Stars: ✭ 25 (-44.44%)
Mutual labels:  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 (+753.33%)
Mutual labels:  truffle, ethereum-contract
Solidity Smart Contracts
smart contracts which are built on ethereum wallet mist,truffle compiler using solidity language.
Stars: ✭ 11 (-75.56%)
Mutual labels:  truffle, ethereum-contract
Angular Truffle Starter Dapp
Angular CLI + Truffle Starter Dapp; write, compile & deploy smart contracts on Ethereum blockchains
Stars: ✭ 174 (+286.67%)
Mutual labels:  truffle, ethereum-contract
Disperse
React/Redux dApp (decentralized app) boilerplate using Ethereum's blockchain
Stars: ✭ 36 (-20%)
Mutual labels:  create-react-app, truffle
svelte-box
A truffle box for svelte
Stars: ✭ 60 (+33.33%)
Mutual labels:  truffle, truffle-framework
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 (+280%)
Mutual labels:  truffle, ethereum-contract
ehr-blockchain
Electronic Health Record (EHR) and Electronic Medical Record (EMR) systems. However, they still face some issues regarding the security of medical records, user ownership of data, data integrity etc. The solution to these issues could be the use of a novel technology, i.e., Blockchain. This technology offers to provide a secure, temper-proof pl…
Stars: ✭ 41 (-8.89%)
Mutual labels:  ethereum-contract, truffle-framework
eSportsETH
A decentralized eSports betting platform
Stars: ✭ 20 (-55.56%)
Mutual labels:  ethereum-contract
multisol
CLI application for verifying Solidity contracts on Etherscan
Stars: ✭ 94 (+108.89%)
Mutual labels:  ethereum-contract
filecoin-box
Filecoin flavored Ganache Truffle box
Stars: ✭ 23 (-48.89%)
Mutual labels:  truffle
Android-Wallet-Token-ERC20
Android Wallet (Token ERC20)
Stars: ✭ 30 (-33.33%)
Mutual labels:  ethereum-contract
elegant-react-ssr
Server-side rendering with create-react-app, React Router v4, Helmet, Redux, and Thunk boilerplate, without ejecting CRA
Stars: ✭ 16 (-64.44%)
Mutual labels:  create-react-app
dharma-token
Implementation and testing for core Dharma Token (dToken) contracts, including Dharma Dai and Dharma USD Coin.
Stars: ✭ 35 (-22.22%)
Mutual labels:  ethereum-contract
coincharts
Cryptocurrency Price Chart (GDAX)
Stars: ✭ 75 (+66.67%)
Mutual labels:  create-react-app

DEPRECATION NOTICE

Hi all, I've since joined the Truffle team. If you're looking for a good React boilerplate to start your development, head over to the official React box here which I will be maintaining personally along with the rest of the team.


Truffle and React.js


comet

Rapid Ethereum Dapp Development

made for ethereum to the moon MIT license


Smart Contract Development with Create-React-App

How does this differ from the official React Truffle Box?

  • No ejection required;
  • React frontend is located in its own separate folder (i.e. /client);
  • Babel is included so you can use ES6 module import statements;
  • Uses Web3 1.0 beta with PromiEvents
  • Truffle-Contract is no longer a dependency

If you have Truffle installed, run the following to get started (more detailed instructions below):

truffle unbox adrianmcli/truffle-react

Note: This Truffle box works by creating a symlink in the client/src directory to the build/contracts folder generated by Truffle compiled JSON files (i.e. when truffle compile is run). Because of this, we cannot support Windows machines at this time. Windows users can still use this Truffle box, but they will have to make the symlink themselves (as per the link-contracts npm script located inside client/package.json). If anyone can integrate Windows support for this project, feel free to discuss in the issues and submit a PR.

Consider consulting the Truffle-Next project for a more streamlined React development process.

This Truffle Box is still in early development, there is much work to be done. Any issues and PRs are welcome.

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-react
  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 webpack server for front-end hot reloading (outside the development console). 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 start
  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
  7. Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.

    // Make sure you are inside the client folder
    cd client
    // Run Jest outside of the development console for front-end component tests.
    npm run test
  8. To build the application for production, use the build command. A production build will be in the build_webpack folder.

    // Make sure you are inside the client folder
    cd client
    // Run the build script
    npm run build

FAQ

  • How do I use this with the EthereumJS TestRPC?

    It's as easy as modifying the config file! Check out our documentation on adding network configurations. Depending on the port you're using, you'll also need to update line 24 of src/utils/getWeb3.js.

  • Why is there both a truffle.js file and a truffle-config.js file?

    truffle-config.js is a copy of truffle.js for compatibility with Windows development environments. Feel free to it if it's irrelevant to your platform.

  • Where is my production build?

    The production build will be in the build_webpack folder. This is because Truffle outputs contract compilations to the build folder.

  • Where can I find more documentation?

    This box is a marriage of Truffle and a React setup created with create-react-app. Either one would be a great place to start!

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