-
git clone https://github.com/bodhiproject/bodhi-graphql.git
-
Run
npm install
to install all dependencies.
npm start // With Electron UI window
npm run start:noui // Without Electron UI window
We are currently using Electron and Electron-Builder to package our apps into native format depending on OS.
-
npm install
to install all dependencies. -
Run the build script for the appropriate OS:
// Mainnet/Testnet build npm run build:mac // creates dmg npm run build:win // creates exe npm run build:lin // creates appimage // Testnet only build npm run build:mactest // creates dmg npm run build:wintest // creates exe npm run build:lintest // creates appimage
-
Run the executable
bodhi-server
is packaged as an NPM module to provide all the server logic to the Electron client. It is important to have the same version code in package.json
as what is in bodhi-server's package.json
.
-
In the bodhi-ui repo,
npm run build
to build the UI files. -
Copy all the files in
bodhi-ui/build
folder tobodhi-electron/ui