How do I really get started with Rchain  

  RSS

billyjean
(@billyjean)
New Member
Joined:8 months  ago
Posts: 1
27/02/2018 4:50 am  

Hi,

I'm an embedded and application developer with experience writing iOS apps and embedded firmware for IOT based platforms. I'd like to get my hands dirty with Rchain but getting started is really a uphill battle. I've downloaded Docker and can run the myriads of docker commands I see peppered throughout github. The problem is I don't know what these are for and what they do. From my perspective, imagine I have some data, I want to 

  1. Securely transmit the data from one place to the next
  2. Store it and/or act on it based on what is received
  3. Run queries

How can I achieve this with Rchain? What do I need to do to get started? How do I even begin to write a process and run it? I've taken a look at  https://developer.rchain.coop/tutorial but it doesn't tell you how to start.

 


ReplyQuote
MichaelBirch
(@michaelbirch)
Member Moderator
Joined:8 months  ago
Posts: 41
27/02/2018 3:15 pm  

https://hub.docker.com/r/rchain/rholang-cli/ gives some information about how to use the Docker image. The command 

docker run -ti -v /path/to/contract.rho:/tmp/input.rho rchain/rholang-cli

will execute the code inside the file located at /path/to/contract.rho. For example, you could put the code listed in the various code blocks of the tutorial into files and run them in the Docker image. You could then also edit those examples yourself and re-run to see how the behaviour changes. There are also much longer examples and an extra tool to help write non-trival Rholang code available on GitHub.

 

The Rholang language and RChain platform are still under heavy development. At this time you cannot communicate between multiple machines using Rholang (which is what I assume you mean by "transmit the data from one place to the next"). But we do encourage you to stay engaged with our development work through our community updates, GitHub project and developer website.


kencode liked
ReplyQuote
pbergman
(@pbergman)
New Member
Joined:7 months  ago
Posts: 1
16/03/2018 8:34 pm  

How do I send rholang commands to a long running node using http?

I would like to modify state over time.

 

/Per

 


ReplyQuote
Valentine
(@valentine)
New Member
Joined:7 months  ago
Posts: 1
17/03/2018 9:41 am  

Those functionalities has not been embedded into rholang yet. It's still at it's infancy. Though u can start basic development of smart contract by running the command on your docker cli

 

docker pull rchain/rholang-cli

 


ReplyQuote
nash e. foster
(@nash)
Member Admin
Joined:9 months  ago
Posts: 5
21/03/2018 4:09 pm  

The latest version of the RChain node is here:  https://github.com/rchain/rchain/releases

It has a JSON API, which can be used to send a very small number of commands to the node. At the moment, the node doesn't have support for Rholang evaluation, so you can't run rholang there yet. That should be coming in the next few releases, so please stay tuned.

Nash E. Foster
Cofounder & CEO, Pyrofex Corporation
"Nearly all software is in the future."


ReplyQuote
Mike Stay
(@stay)
Member Moderator
Joined:7 months  ago
Posts: 19
09/04/2018 11:45 pm  

The current image allows you to run an interpreter with many language features, and each release adds more of the language, so you can start to get a feel for the language.  But as Valentine said, the language effort is still in its early infancy, so none of the things you want to do have been implemented yet.


ReplyQuote
Ezra
 Ezra
(@ezra)
New Member
Joined:5 months  ago
Posts: 1
21/05/2018 9:13 pm  

https://hub.docker.com/r/rchain/rholang-cli/ returns a 404.

Searching the hub for rholang-cli returns no obvious matches.

Is there a new Docker image?


ReplyQuote
  
Working

Please Login or Register