Giter Club home page Giter Club logo

flow-http's Introduction

Corda

Flow Http CorDapp

This CorDapp provides a simple example of how HTTP requests can be made in flows. In this case, the flow makes an HTTP request to retrieve the original BitCoin readme from GitHub.

Be aware that support of HTTP requests in flows is currently limited:

  • The request must be executed in a BLOCKING way. Flows don't currently support suspending to await an HTTP call's response
  • The request must be idempotent. If the flow fails and has to restart from a checkpoint, the request will also be replayed

Pre-requisites:

See https://docs.corda.net/getting-set-up.html.

Usage

Running the nodes:

See https://docs.corda.net/tutorial-cordapp.html#running-the-example-cordapp.

Interacting with the nodes:

Via RPC

Run the following command from a terminal window at the root of the project:

  • Unix/Mac OSX: ./gradlew runClient
  • Windows: gradlew runClient

The text of the first commit of the BitCoin readme will be printed to the terminal window.

Via IntelliJ

Run the Run Flow Http RPC Client run configuration. As with the RPC client, the text of the first commit of the BitCoin readme will be printed in the terminal window.

flow-http's People

Contributors

adagys avatar agoldvarg avatar andr3ej avatar cburlinchon avatar chrisr3 avatar clintonio avatar davidleeuk avatar exfalso avatar fenryka avatar kasiastreich avatar m4ksio avatar mikehearn avatar rick-r3 avatar shamsasari avatar szymonsztuka avatar tb-pq avatar

Watchers

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