Download and install the latest Long Term Support (LTS) version of NodeJS at: https://nodejs.org/.
Clone this repository locally:
git clone https://github.com/mikesla/Stratishackathon.gitNavigate to the StratisCore.UI folder in a terminal:
cd ./StratisCore-1.3.1.0-hackathon/StratisCore.UIFrom within the StratisCore.UI directory run:
npm installinstall and run Cirrus Core (Hackathon Edition) app. It runs a node what we need to run this version of app https://academy.stratisplatform.com/SmartContracts/Tutorial1-LocalSidechain/creating-a-local-chain.html
Use npm run sidechain to start the UI in sidechain mode
This will compile the Angular code and spawn the Electron process.
| Command | Description |
|---|---|
npm run build:prod |
Compiles the application for production. Output files can be found in the dist folder |
npm run package:linux |
Builds your application and creates an app consumable on linux system |
npm run package:linuxarm |
Builds your application and creates an app consumable on linux-arm system (i.e., Raspberry Pi) |
npm run package:windows |
On a Windows OS, builds your application and creates an app consumable in windows 32/64 bit systems |
npm run package:mac |
On a MAC OS, builds your application and generates a .app file of your application that can be run on Mac |
The application is optimised. Only the files of /dist folder are included in the executable. Distributable packages can be found in the StratisCore.UI/app-builds/ folder
https://www.youtube.com/watch?v=n0mUYnUBgqk&feature=youtu.be&t=77