Skip to content

Latest commit

 

History

History
70 lines (42 loc) · 3.72 KB

README.md

File metadata and controls

70 lines (42 loc) · 3.72 KB

Hackathon Starter

This repo contains a number of starter applications and smart contracts to help you get started quickly.

Step 0: Have a development environment

You'll need a development environment; Ubuntu or CentOS are good choices; especially if you can run them in VMs.

  • One option is to use vagrant to setup your own VM - use this example from @jtonline
  • If you have a CentOS or Ubuntu system - here some scripts that show the fastest way to get setup

Step 1: Install VSCode

Get the following extensions depending on your preference of langauge

And the essential

Step 2: Clone this repo

Clone this repo using git

cd a/suitable/directory/for/coding
git clone https://github.com/hyperledgendary/hackathon-starter.git

Open VSCode, within that open the workspace that is within the hackathon-starter directory.

Step 3: Plan your project

Do you have a domain in mind? Supply chain for example, or financial asset transfer? It is important to have a domain and scenario in mind, most scenarions are asset based in some way hence the starter applications are based around assets.

Within the solution, there will be contracts and applications. There are basic examples of both of these within this repo and in different langauges. The basic examples are designed to work with each other.

Step 4: Tutorials

Here are some suggested tutorials to start to understand what you can do.

Practical Notes and Queries

The VSCode extension will ONLY see Contract packages at the root of the workspace. Therefore if you wish to use one of the examples, add the folder directory to the top of the root of the workspace. (right click in the workspace and select 'Add Folder to Workspace...' and then navigate to the contract to use).

When running a client application example, export the Connection Profile and Local wallet to a directory local to the application. For example a _cfg directory within the application. Load the Connection Profile and wallet from there into the application.

It is recommended to use the VSCode extensions to start a running Fabric Infrastructure and to use that to install the contracts.

In the applications there is a _cfg directory, the examples are setup to assume that you've exported the connection profile and wallet from VSCode to that directory.

API References