guysoft / FullPageOS

A raspberrypi distro to display a full page browser on boot
GNU General Public License v3.0
3.86k stars 237 forks source link

Full page Electron? #19

Closed vespakoen closed 5 years ago

vespakoen commented 8 years ago

Hey! I think it would be cool if it could boot up an electron app.

Would it be easy to do that?

Edit

Source code is much smaller than I though it would be, looks like a fork would be appropriate for electron.

guysoft commented 8 years ago

You don't need to fork, you can make an electron variant in the variants folder, then build that. This would mean your build would always be up to date. See Building FullPageOS variants section

As to setting it up, should not be a problem. If you want to do it for yourself you can:

  1. Install nodejs
  2. Install electron
  3. Install your electron app and make it start on boot
  4. Point /boot/fullpageos.txtto your app url

If you write a script for this you could make a variant of it

vespakoen commented 8 years ago

Cool! didn't see that folder, I would like to do this but pretty busy at the moment, if nobody else will, I probably will in a (couple) of week(s)

heibor commented 8 years ago

Nodejs may be a little heavy on the PI platform.

developit commented 8 years ago

@heibor It's actually pretty decent! Memory usage is obviously higher than other runtimes, but at long as you have 200M+ free, you'll see pretty reasonable performance. Plus you can always set --max-old-space-size (recommended for low-memory environments like the Pi) to configure when you want the garbage collector to kick in.

tailorvj commented 8 years ago

I'm also interested in implementing node.js on FullPageOS. Let's create some kind of a virtual hackathon and give it a go. My aim is to replace the dashboard app with node.js and a chrome extension, as described on the following thread

heibor commented 8 years ago

I have a plan to reimplement dashboard with openresty, perhaps nginx+lua based solution can bring more performance and flexibility.

amicoleo commented 6 years ago

Hei, any updates on this? I'd also like to have an Electron variant for FullPageOS.

guysoft commented 6 years ago

No one picked it up. Also since there is a modules system now it should even be easier to build your own OS. All you need is someone with the time (not me)

guysoft commented 5 years ago

Hey, So @tailorvj wrote an electron app, and I wrote a discro that starts it on boot. Tested and works, and solves this issue: https://github.com/fullpageos/PiJam

Since 2016 when this issue was opened FullPageOS moved to use CustomPiOS system, which enables implementing this, but as a septate distro.

Closing, you are welcome to ask questions.