This project is the template we will use as a basis for developing a complete CorDapp during the bootcamp. Our CorDapp will allow the issuance of tokens onto the ledger.
We'll develop the CorDapp using a test-driven approach. At each stage, you'll know your CorDapp is working once the defined tests pass.
- 
Download and install Oracle JDK 8 JVM (minimum supported version 8u171) 
- 
Download and install IntelliJ Community Edition (supported versions 2017.x and 2018.x) 
- 
Download the bootcamp-cordapp-kotlinrepository
- 
Open IntelliJ. From the splash screen, click Import Project, select thebootcamp-cordapp-kotlinfolder and clickOpen
- 
Select Import project from external model > Gradle > Next > Finish(Gradle will now download all the project dependencies and perform some indexing. This usually takes a minute or so)
- 
Click File > Project Structure…and select the Project SDK (Oracle JDK 8, 8u171+)i. Add a new SDK if required by clicking New…and selecting the JDK’s folder
- 
Open the Projectview by clickingView > Tool Windows > Project
- 
You can now start implementing! =========================================================================================================== #TODOS - ONCE ALL TESTS PASS. 
$ ./gradlew deployNodes (in project root) #Then, cd build/nodes $ ./runnodes
#Run Query: (in partyA, partyB shells)
run vaultQuery contractStateType: kotlin_bootcamp.TokenState
#Flow: (in PartyB shell)
flow start TokenIssueFlow owner: "PartyA", amount: 200
Run the query again after executing the above flow in both shells.
https://gist.github.com/amolpednekar/c400df847924652cd1f5c5cec0d61614