This box comes with everything you need to start using smart contracts from a react app

Related tags

React ddca.app
Overview

Truffle React Hooks TypeScript Template

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

Installation

truffle develop
migrate --network development
compile
deploy
  1. First of all, do a git clone to bring this repository locally
    git clone https://github.com/YutaSugimura/truffle-react-typescript.git

Delete /test/simpleStorage.test.ts and /contracts/SimpleStorage.sol and create your own contract

  1. Installing truffle.

     npm install -g truffle
  2. Installing the library

     yarn install
     # or
     npm i
  3. Compiling Contracts. Compile the smart contract.

    yarn compile
  4. Run the development console.

    truffle develop
  5. In the client directory, we run the React app. Smart contract changes must be manually recompiled and migrated.

    # in another terminal (i.e. not in the truffle develop prompt)
    cd client
    # install dependencies
    npm install
    # or
    yarn install
    npm start
    # or
    yarn start
  6. Using ethereum-waffle to test smart contracts

    yarn test
    
    # or
    npm run test
  7. Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.

    # ensure you are inside the client directory when running this
    npm run test
    # or
    yarn test
  8. To build the application for production, use the build script. A production build will be in the client/build folder.

    # ensure you are inside the client directory when running this
    npm run build
    # or
    yarn build
You might also like...

Very simple app to decode your Vaccination Proof QR Code (such as the one provided by government of Quebec) - Compatible with SHC (Smart Health Card standard)

Very simple app to decode your Vaccination Proof QR Code (such as the one provided by government of Quebec) - Compatible with SHC (Smart Health Card standard)

shc-covid19-decoder Visit simple hosted version on your phone (does NOT transmit any data, all remains in your browser) https://fproulx.github.io/shc-

Sep 23, 2022

Examples of Solidity++ contracts

soliditypp-examples Examples of Solidity++ 0.8.0 / 0.8.1. This is a preview version. DO NOT use it in production environment. Getting Started npm inst

Sep 18, 2022

A collection of vigorously tested, examplary Huff contracts for demonstration purposes.

A collection of vigorously tested, examplary Huff contracts for demonstration purposes.

The Huff Programming Language Huff is a low-level programming language designed for developing highly optimized smart contracts that run on the Ethere

Dec 20, 2022

🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!

🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!

toastify-react-native 🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense! De

Oct 11, 2022

Safari-like start page

Safari-like start page

Safari-like Start Page Safari-like Start Page - Online Preview Installation clone this repo # Clone the repo # Using HTTPS git clone https://github.c

Dec 8, 2022

Start developing LIFF application with a simple CLI command.

@line/create-liff-app Start developing LIFF application with a simple CLI command. About LIFF Templates Getting Started Create LIFF Channel Installati

Nov 10, 2022

Run an Ethereum node — just press start

Run an Ethereum node — just press start

NiceNode "Run a node, just press start" Mission: 2x the number of Ethereum nodes by making a one-click-to-start Ethereum node Why?: The light client r

Jan 2, 2023

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

Recoil · Recoil is an experimental set of utilities for state management with React. Please see the website: https://recoiljs.org Installation The Rec

Jan 8, 2023
Owner
Louis Aussedat
Embedded enginer, musician lover and blockchain enthousiast
Louis Aussedat
Using Ethereum Smart Contracts to verify any user's vaccination via Identification Number or QR Code.

Covid-Vaccine-Verification-Blockchain Using Ethereum Smart Contracts to verify any user's vaccination via Identification Number or QR Code. Requiremen

Zaynab Batool Reza 4 May 14, 2022
🔄 Basic project to start studying React and Typescript. With it you can translate text to binary or morse language. This project addresses the creation of routes and components.

max-conversion Projeto criado para iniciar nos estudos de React e Typescript Basic project to gain knowledge in react Na plataforma é possível convert

Igor Neves 3 Feb 12, 2022
You shouldn't start a wonderful app from scratch every time.

React App Starter You shouldn't start a wonderful app from scratch every time. ~ TJ Features: Out of box API mocking. Out of box Authentication. Beaut

蒋继发 8 Nov 10, 2022
To eleventy and beyond! The all-in-one tool for templates where you want them, component frameworks where you need them 🚀

Slinkity ?? This project is heavily under construction! ?? As excited as you may be, we don't recommend this early alpha for production use. Still, gi

Benjamin Holmes 398 Dec 27, 2022
Material-UI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

Material-UI Quickly build beautiful React apps. Material-UI is a simple and customizable component library to build faster, beautiful, and more access

Material-UI 83.6k Dec 30, 2022
React-app - Building volume rendering web app with VTK.js,react & HTML Using datasets provided in vtk examples (head for surface rendering and chest for ray casting)

SBE306 Assignment 4 (VTK) data : Directory containing Head and Ankle datasets Description A 3D medical viewer built with vtk-js Team Team Name : team-

Mustafa Megahed  2 Jul 19, 2022
null 136 Dec 30, 2022
React Native's Global Alert Component that can be fully customized and without the need of a state.

?? React Native Easy Alert React Native Easy Alert Component. Watch on youtube Easy Alert example app. React Native's Global Alert Component that can

null 9 Feb 21, 2022
A code snippet box.

TinyCodes 一个易用又美观的代码管理软件 特色: 支持 60+语言高亮 美观的界面 数据完全离线 WebDav 同步(开发中) 安装 我们提供了编译好的版本,在Release页面下载。 MacOS MacOS 没有进行任何测试,不保证其可用性。因为目前没有在 MacOS 上运行过。 非常欢迎

null 75 Oct 27, 2022
lottery smart contract with react UI, Now ready to interact

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: ya

Akshay Kurhekar 1 Dec 19, 2021