...

/

Deploy Client Application

Deploy Client Application

In this last lesson, we will first see the folder structure of the application and then we will see how to run the environment.

Folder Structure for API #


Now lets look at important files inside the api folder.

  1. src/index.js:
    Creates an express.js server that exposes following endpoints.

    • EnrollAdmin
      • This will enroll the admin with CA using SDK and then store Admin’s credentials in a file-based wallet.
    • Query
      • This will query the blockchain using the landrec chaincode. It will use fabric node sdk to do so.
    • Invoke
      • This will invoke the createLand method in our landrec chaincode
  2. src/controllers/*.js: ...

Access this course and 1400+ top-rated courses and projects.