{"id":14978459,"url":"https://github.com/tarikguney/electron-with-sqlite3","last_synced_at":"2025-08-21T10:32:00.067Z","repository":{"id":23067396,"uuid":"89879291","full_name":"tarikguney/electron-with-sqlite3","owner":"tarikguney","description":"Sample application for ElectronJS working with Sqlite3","archived":false,"fork":false,"pushed_at":"2023-01-11T01:40:17.000Z","size":232,"stargazers_count":124,"open_issues_count":18,"forks_count":40,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-15T08:10:00.085Z","etag":null,"topics":["desktop-app","electronjs","knexjs","nodejs","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarikguney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-30T21:47:51.000Z","updated_at":"2024-04-10T16:23:44.000Z","dependencies_parsed_at":"2023-01-13T22:42:18.338Z","dependency_job_id":null,"html_url":"https://github.com/tarikguney/electron-with-sqlite3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Felectron-with-sqlite3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Felectron-with-sqlite3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Felectron-with-sqlite3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarikguney%2Felectron-with-sqlite3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarikguney","download_url":"https://codeload.github.com/tarikguney/electron-with-sqlite3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230507051,"owners_count":18236944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["desktop-app","electronjs","knexjs","nodejs","sqlite","sqlite3"],"created_at":"2024-09-24T13:57:43.967Z","updated_at":"2024-12-19T22:08:53.261Z","avatar_url":"https://github.com/tarikguney.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purpose\n\nThis repository contains sample code for the following areas:\n\n1. Creating a new `BrowserWindow` and how to show and destroy it from the `MainProcess`.\n2. Sending data between `RendererProcess` and `MainProcess` in Electron app.\n3. Using `IPCRenderer` and `IPCMain` objects.\n4. Connecting `Sqlite3` using `Knex` library.\n5. Building and reading queries using `Knex` library.\n\nThe shortcut for showing dev tools on windows in Electron is `Command` + `Alt` + `I` on MacOS.\n\n# Notes\n\nWhen sending data between `RenderProcess` and `MainProcess`, there are two important code pieces:\n\n1. `IPCMain` and `IPCRenderer`\n2. `BrowserWindow.webContents.send()`\n\n`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. \n\nAlso, 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.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarikguney%2Felectron-with-sqlite3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarikguney%2Felectron-with-sqlite3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarikguney%2Felectron-with-sqlite3/lists"}