mebinjoe / cordapp-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cordapp-template

Running the client:

Via the command line

Run the runTemplateClient Gradle task. By default, it connects to the node with RPC address localhost:10006 with the username user1 and the password test.

Via IntelliJ

Run the Run Template Client run configuration. By default, it connects to the node with RPC address localhost:10006 with the username user1 and the password test.

Running the webserver:

Via the command line

Run the runTemplateServer Gradle task. By default, it connects to the node with RPC address localhost:10006 with the username user1 and the password test, and serves the webserver on port localhost:10050.

Via IntelliJ

Run the Run Template Server run configuration. By default, it connects to the node with RPC address localhost:10006 with the username user1 and the password test, and serves the webserver on port localhost:10050.

Interacting with the webserver

The static webpage is served on:

http://localhost:10050

While the sole template endpoint is served on:

http://localhost:10050/templateendpoint

Extending the template

You should extend this template as follows:

  • Add your own state and contract definitions under contracts/src/main/java/
  • Add your own flow definitions under workflows/src/main/java/
  • Extend or replace the client and webserver under clients/src/main/java/

About

License:Apache License 2.0


Languages

Language:Java 97.2%Language:HTML 2.5%Language:JavaScript 0.3%