• Stars
    star
    125
  • Rank 285,067 (Top 6 %)
  • Language
    JavaScript
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample application for ElectronJS working with Sqlite3

Purpose

This repository contains sample code for the following areas:

  1. Creating a new BrowserWindow and how to show and destroy it from the MainProcess.
  2. Sending data between RendererProcess and MainProcess in Electron app.
  3. Using IPCRenderer and IPCMain objects.
  4. Connecting Sqlite3 using Knex library.
  5. Building and reading queries using Knex library.

The shortcut for showing dev tools on windows in Electron is Command + Alt + I on MacOS.

Notes

When sending data between RenderProcess and MainProcess, there are two important code pieces:

  1. IPCMain and IPCRenderer
  2. BrowserWindow.webContents.send()

WebContents contains events, etc. for a window. IPC means inter-process communication. The idea here is events. You can fire an event by using send() method along with data to pass, and the subscribers listening to it get the data passed.

Also, when I was working with Sqlite3, I got errors with it not being found. Therefore, I had to install electron-rebuild dev-dependency and rebuilt the electron with it by calling npm run rebuild. package.json has the setting for the rebuild command.

More Repositories

1

usa-visa-appointment-checker

The USA Visa interview appointment checker
PowerShell
115
star
2

command-core

The MVC library of CLI development
C#
83
star
3

taskcore

Command Line ToDo Management Application
C#
65
star
4

manager-automation-v2

Automating management tasks to help managers focus on more strategic wins.
C#
39
star
5

copier

A file watcher app that copies changed files to a target location.
C#
35
star
6

manager-automation

Automating management tasks to help managers focus on more strategic wins.
C#
33
star
7

interview-questions

This repository contains various interview questions categorized within different levels.
C#
31
star
8

weather-plugin-for-elgato-streamdeck

Weather Plugin gets and displays weather condition on your StreamDeck hourly from AccuWeather.
JavaScript
30
star
9

solid-programming

Samples for SOLID programming
C#
27
star
10

git-config

PowerShell
24
star
11

katip

Very fast version control system for everyone
Go
23
star
12

jira-slack-bot

Jira Slack Bot: A Python-based Slack bot that integrates with Jira to manage tasks, bugs, stories, and epics directly from Slack. It supports various commands for ticket creation, prioritization, and tracking.
Python
21
star
13

OAuth20

A simple OAuth 2.0 Authorization Server and Client implementation
C#
20
star
14

powershell-git-profile

Setting up SSH keys with Git in Powershell
PowerShell
17
star
15

eat-your-food

Automatically pauses and resumes YouTube and Netflix videos.
JavaScript
16
star
16

amazon-deals-scraper

Amazon Deals Page Scraper
JavaScript
14
star
17

chrome-extension-experiment

JavaScript
11
star
18

twitter-muted-words

10
star
19

ascii-table-creator

Creates an ASCII table from a given DataTable class
C#
7
star
20

book-reviews

HTML
7
star
21

generic-pipeline

C#
6
star
22

todoapp

A sample todo application written completely in Angular
TypeScript
6
star
23

tarikguney

4
star
24

leadership-journey

HTML
4
star
25

elgato-sample-plugin

CSS
3
star
26

json-path-flatter

C#
3
star
27

projekt-hive

Ensuring on-time project deliveries.
3
star
28

insights-solutions

3
star
29

angular-example-securelogin

A sample project that utilizes the power of Angular
TypeScript
3
star
30

learning-go

Go
3
star
31

go-oop

Object Oriented Programming in Go Lang
Go
2
star
32

pipeline-with-dotnetcore

Pipeline Example with DotNet Core
C#
2
star
33

rfsnotify

Go
2
star
34

in-dev-time-calculator

Python
2
star
35

azure-stack-deployment-powershell

Enjoy!
PowerShell
1
star
36

algorithms

C#
1
star
37

test-site

HTML
1
star