All Projects → truffle-box → React Auth Box

truffle-box / React Auth Box

Licence: mit
Truffle, Webpack, React, Redux boilerplate with routing and authentication via a smart contract.

Programming Languages

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

Projects that are alternatives of or similar to React Auth Box

React Box
Truffle, Webpack and React boilerplate.
Stars: ✭ 516 (+200%)
Mutual labels:  ethereum, truffle, webpack
React Uport Box
Truffle, Webpack, React, Redux boilerplate with routing and authentication via a UPort.
Stars: ✭ 99 (-42.44%)
Mutual labels:  ethereum, truffle, webpack
Marketprotocol
Ethereum based derivatives trading protocol creating digital tokens for any asset
Stars: ✭ 78 (-54.65%)
Mutual labels:  ethereum, truffle
Rico
The Responsible Initial Coin Offering Framework
Stars: ✭ 83 (-51.74%)
Mutual labels:  ethereum, truffle
Starter Kit
An OpenZeppelin starter kit containing React, OpenZeppelin SDK & OpenZeppelin Contracts.
Stars: ✭ 101 (-41.28%)
Mutual labels:  ethereum, truffle
Kin Token
Kin token contracts.
Stars: ✭ 60 (-65.12%)
Mutual labels:  ethereum, truffle
Supply Chain
Supply chain management on blockchain using Angular 4 + Truffle + IPFS + Ethereum
Stars: ✭ 76 (-55.81%)
Mutual labels:  ethereum, truffle
Soltsice
Solidity & TypeScript Integration, Configuration and Examples
Stars: ✭ 94 (-45.35%)
Mutual labels:  ethereum, truffle
Transmute Framework
TypeScript dApp Framework
Stars: ✭ 45 (-73.84%)
Mutual labels:  ethereum, truffle
Truffle Assertions
🛠 Assertions and utilities for testing Ethereum smart contracts with Truffle unit tests
Stars: ✭ 109 (-36.63%)
Mutual labels:  ethereum, truffle
Truffle
A tool for developing smart contracts. Crafted with the finest cacaos.
Stars: ✭ 11,909 (+6823.84%)
Mutual labels:  ethereum, truffle
Truffle Next
🛰️ A boilerplate Truffle Box project with Next.js for rapid Ethereum Dapp development
Stars: ✭ 130 (-24.42%)
Mutual labels:  ethereum, truffle
Awesome Ethereum Cn
Web3.js、Solidity、Truffle开发教程及以太坊开发资源汇总
Stars: ✭ 54 (-68.6%)
Mutual labels:  ethereum, truffle
Trace
Supply chain transparency platform proof-of-concept based on the Ethereum blockchain ✍️
Stars: ✭ 52 (-69.77%)
Mutual labels:  ethereum, truffle
Etheno
Simplify Ethereum security analysis and testing
Stars: ✭ 77 (-55.23%)
Mutual labels:  ethereum, truffle
Nuxt Box
Truffle, Nuxt and Vue boilerplate
Stars: ✭ 46 (-73.26%)
Mutual labels:  ethereum, truffle
Sablier
The protocol for real-time finance on the Ethereum blockchain
Stars: ✭ 147 (-14.53%)
Mutual labels:  ethereum, truffle
Disperse
React/Redux dApp (decentralized app) boilerplate using Ethereum's blockchain
Stars: ✭ 36 (-79.07%)
Mutual labels:  ethereum, truffle
Blockchain Learning
Learn and promote blockchain together by writing
Stars: ✭ 44 (-74.42%)
Mutual labels:  ethereum, truffle
Web3 Vs Ethers
A basic cheatsheet of Web3.js vs Ethers (along w/ example apps!)
Stars: ✭ 103 (-40.12%)
Mutual labels:  ethereum, truffle

⚠️ No new changes will be made to this box! Truffle no longer actively maintains official boxes that encourage production use of their included contracts. We encourage you to take a look at other boxes in our listing that offer authentication.

React, Redux and Authentication Truffle Box

In addition to Webpack and React, this box adds: react-router, redux and redux-auth-wrapper for authentication powered by a smart contract. Great for building your own auth system.

Installation

  1. Install Truffle globally.

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

    truffle unbox react-auth
    
  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.

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

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

    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 34 of src/util/web3/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].