Note: This is an experiment but it offers a starting point.
References
- Navigate to the app directory (this directory contains the AdoniJS files)
- Run
npm install - Navigate to the root directory
- Run
nnpm install - Still on the home directory, run
npm run start
Inside your root directory package.js we are starting the electron server
"scripts": {
"start": "electron . "
},
Inside Electron's main.js file we are requiring the adonis server
//Adonis server
server = require("./app/server")
