Skip to content

mintech-dot/Laravel-electronjs-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published