Making Laravel desktop application using Electron Js For Linux.
- Clone it
git clone https://github.com/mintech-dot/Laravel-electronjs-linux
- Navigate to the directory
cd Laravel-electronjs-linux
- Install dependencies
npm install
OR yarn install
- Run the project
npm run
ORyarn start
- cd to www folder(inside the project).
cd www/
-
add laravel project inside www folder.
-
make sure to add the correct php bin path in main.js file.
// Create a PHP Server
phpServer.createServer({
port: port,
hostname: host,
base: `${__dirname}/www/public`,
keepalive: false,
open: false,
bin: '/usr/bin/php', // <---- this one here
router: __dirname + '/www/server.php'
});
- Start developing :)
You can also try to develop laravel separately then move the files to www folder once. Experiment and give some feedback :)
npm run build
OR yarn build