Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron new app structure

We're trying to create an app to track some logfiles and push those data to our API for our company. It'll be working on Mac OSX and Windows

So, we're really newbie at Electron. I just wonder there is a accepted file structure or framework for Electron ? Because, I don't want to mess up my codes in the future.

like image 804
utkuDAT Avatar asked Jul 15 '16 13:07

utkuDAT


People also ask

Is WhatsApp built with Electron?

Why does WhatsApp desktop app use Electron? Working less and providing more, Electron framework helped the WhatsApp developers to cover it all in single cost and wrap around the desktop experience of WhatsApp through a more streamlined and revolutionized framework – the Electron.

Why Electron apps are so big?

Electron apps bundle Chromium and NodeJs out of the gate, leading to a very large app size. Even a simple app built on Chromium can be resource-intensive and probably use more CPU and RAM than a native app.

Can Electron build mobile apps?

Use the Same Codebase for Android Application The powerful thing about combining Electron with Cordova is that now you can take the same codebase and build for mobile platforms such as Android.

Why do Electron apps use so much RAM?

Electron will use a ton of memory because it's running a full browser inside a browser/desktop, Chromium, along with running v8 and all of it's own code. Along with that Chromium is already known for high memory usage. So it's relatively normal to see high memory.


1 Answers

Depending on the features you want (angular, react, webpack, etc.), there are starter projects out there. Just have a look on Github for electron starters. However, most projects follow a very similar structure, having at least the following directories:

  • config
  • app (or src)
    • component 1
    • component 2
  • assets
    • fonts
    • images
  • test

You may also search for electron prebuilt, electron boilerplate or electron seed.

like image 108
Matthias Sommer Avatar answered Oct 10 '22 20:10

Matthias Sommer