electron-starter | Electron starter project with React LESS | Frontend Framework library
kandi X-RAY | electron-starter Summary
kandi X-RAY | electron-starter Summary
This is one of the simplest example with Electron. This app, "Raincast" gets weather info via API, and shows the red icon on the menu bar if it's raining. That's it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of electron-starter
electron-starter Key Features
electron-starter Examples and Code Snippets
Community Discussions
Trending Discussions on electron-starter
QUESTION
I am working on a new project using Electron and ReactJS. The project works fine in development mode, but I am trying to create an installer for Windows but no matter what I try and what I find on Google nothing works. I just get a blank white screen.
Below is my pacakge.json
...ANSWER
Answered 2020-Oct-23 at 12:06After a hell of a lot of trial and error I've managed to get it working finally.
The first thing was to change my App.js so that instead of using BrowserRouter I now use HashRouter as follows and use the history from react-router-dom
QUESTION
I've built a React app that works fine on Chrome. Now I wanted to convert it into an Electron app. The assets located in the /public
directory (pictures, icons, JSON files) cannot be loaded in the electron app.
The browser console displays errors while loading these files:
Failed to load resource: net::ERR_FILE_NOT_FOUND
.
When I insert an asset picture from the public directory directly in the generated index.html file like
ANSWER
Answered 2020-Jul-11 at 16:12i have this example, and you charge an path with "../" this example if you can enter with path don't need include ".." i hope you can resolve
QUESTION
I'm running into an issue where I cannot get testcafe to load properly. It starts the testcafe service and loads the index.html file but the bundle never loads so any DOM selection fails as it is not available.
because of create-react-app, we've got a varied folder structure from the examples that I would like not to deviate from.
folder structure
...ANSWER
Answered 2019-Mar-05 at 09:58I created a sample React+Electron project following this guide and didn't face any issue with TestCafe integration.
I can only suppose that there is an error somewhere in configuration, so I'll appreciate it if you provide us with your project. In this case, I'll be able to research the issue in detail. Please create a separate issue on GitHub using the following form
QUESTION
Hi I'm using ElectronJS with React trying to fire off an event whenever I click the save button on the menu in electorn js. I'm trying to listen to the event within a component, however on click of the menu item I get this error;
...ANSWER
Answered 2018-Aug-17 at 13:41const template = [
{
label: 'File',
submenu: [
{
label: 'Save', accelerator: 'Cmd+S',
click() {
mainWindow.webContents.send('save-hosts-file');
}
},
]
},
];
componentDidMount() {
ipcMain.on('save-hosts-file', (event) => {
console.log('save file');
});
}
QUESTION
I am trying to start my new project with react and electronjs. I've already installed react-app with babel and web pack which works fine but now I am struggling to launch it with electron but without any luck :/. I looked at many articles about react and electron but there was no suggestions and real examples how to connect (react, web pack, babel, and electron) together.
electron-starter.js looks like that:
...ANSWER
Answered 2018-Aug-04 at 23:21QUESTION
I want to create a desktop app that reads in a json data file, then uses that data to render things on screen. The json data file needs to be packaged into the app
What I didFollow an article how to use create-react-app and make it work in electron
https://medium.freecodecamp.org/building-an-electron-application-with-create-react-app-97945861647c
Where I'm stuck atEverything I have done sofar works in the development environment. I want to make a distribution, currently using electron-builder that creates an installer so I can distribute the app
However it seems my data files are not packaged or they might are ... I honestly can't tell, but can't be accessed when running the electron app after install
The Code ...ANSWER
Answered 2018-Jul-21 at 16:07Well it seems the folder was packaged after all in the asar file. However you need to access the assets relatively from the apps environment variables. I managed to get it working with this.
QUESTION
I'm trying to build one small desktop app using:
- Angular 4+
- NodeJS
- Electron
- SQLite3
NodeJS will be used for scanning local user hdd and inserting specific files that are found into SQLite3 database.
I checked dozens of documentation and suggestions. Most of them suggest to use NodeJS express framework and make layer between Angular 4+ -> Express -> SQLite3.
I want to avoid using express framework because it is going to be desktop app and it is not needed at all.
What I tried and what I did:
I installed:
...ANSWER
Answered 2017-Oct-12 at 12:23I've just published a sample project which shows how to build a desktop app using Electron, Angular4 and Sqlite3. You can clone it here
Note I've node-gyp globally installed.
Hope it helps
QUESTION
I started messing around with Angular 2 and Electron, and used this starter package. Everything seems to be going well, I'm even able to use the node fs package to read from a directory.
The problem I'm having is that I can't seem to be able to use an absolute path for the readdirSync() method. It only takes a relative path.
I did find this in the docs for fs that you can use the URL package to show an absolute path for readdirSync(), like so:
...ANSWER
Answered 2017-Jul-05 at 13:38Documentation states that URL support was introduced in v7.6.0 and is experimental. Electron uses v7.4.0, thus you can not use URL with fs yet.
QUESTION
I'm using TypeScript and React. I've defined my AppContainer.tsx
component, exported it as default. I'm consuming this in the file app.ts
where ReactDOM
lives to render it to the targetted dom element. But there I receive the following errors (see image). Read below for more information and links to GitHub repo.
Question: What am I doing, or interpreting, wrong? From all code examples I've seen this should work - but maybe (clearly) I'm missing something. Below is more info and links to the full GitHub repo.
Environment- react 15.4.2
- react-dom 15.4.2
- typings: https://github.com/aredfox/electron-starter/blob/master/typings.json
- tsconfig: https://github.com/aredfox/electron-starter/blob/master/tsconfig.json
ANSWER
Answered 2017-Jan-27 at 15:45You can't use jsx
/tsx
syntax inside files which have ts
extension.
You can either rename your file to app.tsx
, or you can use React.createElement:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-starter
run npm install
run npm start to run app from CLI without building Raincast.app
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page