template-workspace bundles all the necessary dependencies for building and running SSApps in a single package.
The template-workspace bundle contains the following core components required for building and running a Self Sovereign Application:
- Octopus task runner
- PrivateSky local installation
- Web Server
- Wallet template
- User Profile demo application
- SSApp application loader
Octopus is the first tool installed by the ssapp-demo-workspace and it is used to further fetch and build the rest of the dependencies. For more information on Octopus read the PrivateSky dedicated page in the documentation.
PrivateSky provides the VirtualMQ service and the javascript runtime bundles required for a SSApp to interact with EDFS and PrivateSky nodes
The web server is configured to serve static files from the web-server directory inside the template-workspace installation. Besides serving static files, the server exposes the Brick Storage API required to store data to EDFS.
The wallet template installed by template-workspace is a plain customisable SSApp which once loaded will display a menu with all the SSApp applications contained in this ssapp-demo-workspace installation. Through this app you will be able to access your newly created SSApp.
The only commands you need to run in the tutorial-workspace workspace are:
$ npm install
$ npm run server
$ npm run build-all
The SSApp application loader is the first thing you will see after running the template-workspace* web server and accessing http://localhost:8080/secure-channels/loader
.
It is a basic web application which allows creation and loading of wallets based on the menu wallet template. The SSApp loader registers a service worker responsible with loading the built SSApps from the Brick Storage.
PrivateSky.xyz has a dedicated document on how to create a ssapp and that will give you a head start on how to create and add multiple ssapps into your workspace.