mintech-dot / Laravel-electronjs-linux

Making Laravel desktop application using Electron Js For Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

laravel electron js for Linux

Making Laravel desktop application using Electron Js For Linux.

Screenshot-from-2022-10-08-15-33-41

How to use

  1. Clone it

git clone https://github.com/mintech-dot/Laravel-electronjs-linux

  1. Navigate to the directory

cd Laravel-electronjs-linux

  1. Install dependencies

npm install OR yarn install

  1. Run the project npm run OR yarn start

Developing

  1. cd to www folder(inside the project).

cd www/

  1. add laravel project inside www folder.

  2. 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'
  });
  1. Start developing :)

You can also try to develop laravel separately then move the files to www folder once. Experiment and give some feedback :)

Building it

npm run build OR yarn build

About

Making Laravel desktop application using Electron Js For Linux


Languages

Language:PHP 84.3%Language:Blade 13.1%Language:JavaScript 2.6%