Giter Site home page Giter Site logo

moosesnwoop / reach-react-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paradoxfly/reach-react-boilerplate

0.0 0.0 0.0 242 KB

Boilerplate for a reach dapp with a react frontend.

Shell 28.88% JavaScript 60.30% CSS 4.22% HTML 5.37% RenderScript 1.23%

reach-react-boilerplate's Introduction

REACH + REACT BOILERPLATE ๐Ÿง‘โ€๐Ÿ’ป

โ“ What is Reach?

๐Ÿ’ก DApps are made of multiple agents interacting with each other through some backend consensus network, like Ethereum or Algorand.

๐Ÿ’ก In Reach, a programmer only needs to specify the actions of participants---what they do individually and what they do in unison. The Reach compiler automatically derives a contract for the consensus network via a connector that enforces these rules. [More on Reach](https://docs.[Reach](https://docs.reach.sh/tut/overview/#overview).sh/tut/overview/#overview)

React is one of many frameworks that can be implemented with Reach.

๐ŸŒฑ This boilerplate helps kickstart your development of a Reach dAPP using React frontend.


File Directory

.
|_ public (contains media files)
|_ src (main app dir)
|   |_ reach
|   |   |_ .reach
|   |   |_ build
|           |_ index.main.mjs
|   |   |_ index.rsh
|   |   |_ reach
|   |_ screens
|       |_ ConnectAccount.jsx
|       |_ index.css
|       |_ index.js
|       |_ PasteContractInfo.jsx
|       |_ SelectRole.jsx
|       |_ TestView.jsx
|       |_ WaitForAttacher.jsx
|   |_ utils
|       |_ Constant.js
|       |_ index.css
|       |_ index.js
|       |_ loader.jsx
|   |_ App.css
|   |_ App.test.js
|   |_ index.css
|   |_ index.js
|   |_ logo.svg
|   |_ reportWebVitals.js
|   |_ setupTests.js
|_ .gitignore
|_ package.json
|_ README.md

Requirements:

๐Ÿ’ป Reach - https://docs.reach.sh/tut/rps/#tut-1

๐Ÿ’ป git - https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

๐Ÿ’ป yarn - https://classic.yarnpkg.com/lang/en/docs/install/#debian-stable

Clone the repository

git clone https://github.com/paradoxfly/reach-react-boilerplate

Install the dependencies

yarn install

# From the project root path

cd src/reach

# To compile to the latest version of REACH

./reach compile

Test the Application

Run yarn start to get your development server start.

This opens a new browser with localhost:3000 running.

startup


Deployer and Attacher view

Open localhost:3000 on separate browsers to test using MyAlgo Testnet or it's Mnemonic keys.

Implement your backend changes in src/reach/index.rsh

reach-react-boilerplate's People

Contributors

cfcife avatar paradoxfly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.