GithubHelp home page GithubHelp logo

nzpr / rchain-status Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshorndorff/rchain-status

0.0 1.0 0.0 308 KB

Microblogging POC for RChain

Emacs Lisp 3.25% HTML 33.08% JavaScript 63.68%

rchain-status's Introduction

RChain Status dApp Example

This repository is an example and tutorial for writing decentralized applications on RChain. Using it requires moderate familiarity with the command line, RNode software, and node.js. I encourage you to experiment and make changesg. RChain is still in a pre-release state and not all of the features we would have used in this dapp are available yet.

Written By:
Joshy Orndorff
Dan Connolly

Build

  1. Install RNode (instructions)
  2. Install node and npm (instructions)
  3. Clone the repo git clone https://github.com/JoshOrndorff/Rchain-Status.git
  4. Change into the project directory cd Rchain-Status
  5. Install dependencies npm install
  6. Start a fresh, pre-configured RNode freshr
  7. Deploy the smart contract npm run deploy-contract and observe its URI in the node log. (eg. rho:id:z8s9ussdc5hx3z4m8a9a98cah3r5d8ick6yj5bfs4wc8oyrhacbabc)
  8. Launch the frontend server node main.js start --register <uri>
  9. Navigate to the user interface in your favorite browser at localhost:8080

Overview of writing a dapp

These big-picture steps apply to writing any dApp including ours.

  1. Design the smart contract -- ours is in status.rho
  2. Design an interface -- (eg express.js, and spectre css)
  3. Connect the interface to the contract -- We'll use the rchain-api node module
  4. Deploy your contract
  5. Use your dapp
  6. Celebrate :)

Overview of the Contract

Our primitive social media Dapp allows users to post a single status message representing their current thoughts, activity, etc. Examples might include "Rainy Saturday...", "Long weekend coming up!", "Go Indians! World series this year!".

Feedback

I sincerely hope that this example dApp was helpful and made the path to your first dapp a bit easier. I will continue to improve this guide as new node features are release. I'd also love your feedback either in the issue queue, the pull requests, or on the RChain discord.

rchain-status's People

Contributors

dckc avatar joshorndorff avatar

Watchers

 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.