This section describes how to start the platform-deploy and
web-auth-endpoint nodes and the Accounts and Template apps.
|
Note
|
The following procedures assume that you are continuing from Configure the Example. |
-
Open a new terminal and run the following commands from the
interbitrepository’s root:npm i source secrets/platform-deploy.sh cd packages/platform-deploy npm run build:dev npm start
Our package script runs a post-install step which builds all of the modules in the
interbitrepository. Thebuild:devstep forplatform-deploycreates a new manifest file using the newly-generated keys and hashed covenant files. The build step also updates the chain IDs for the other modules, includingapp-accountandinterbit-template.The
startcommand spins up theplatform-deploynode, which listens for incoming connections from theweb-auth-endpointnode and the Account and Template apps' browser nodes.ImportantLeave this terminal open. -
Wait for
platform-deployto fully initialize.Once you see the following line,
platform-deployis fully initialized and you can move on to the next step:ROOT SAGA: watching for app-account-github-kyc/OAUTH_CALLBACK_SAGANoteAs of mid-August 2018, the
platform-deploynode can take 2-3 minutes to create the required blockchains, as it waits to see if any peers are already hosting the blockchains.+ This is the only step where a delay is imposed.
-
Open a new terminal (the second) and run the following commands from the
interbitrepository’s root:source secrets/web-auth-endpoint.sh cd packages/web-auth-endpoint npm start
ImportantLeave this terminal open.
-
Open a new terminal (the third) and run the following commands from the
interbitrepository’s root:cd packages/app-account npm startImportantLeave this terminal open. A new tab opens in your browser at
http://localhost:3025, displaying the Accounts app:This React app starts an Interbit node to connect to the
platform-deployandweb-auth-endpointpeer nodes running in the first two terminals. -
Open a new terminal (the fourth) and run the following commands from the
interbitrepository’s root:cd packages/interbit-template npm startImportantLeave this terminal open. A new tab opens in your browser at
http://localhost:3000, displaying the Template app.This React app starts an Interbit node to connect to the
platform-deploypeer node.
Both nodes and both apps are now running. See the next section for the steps to create an account by authenticating with GitHub, and to authorize another app to connect to your account chain.

