Skip to content

luizbinda/electron-typescript-react-sqlite3

Repository files navigation

Electron + TypeScript + React

Boilerplate for a project using Electron, React and Typescript

Installation

Use a package manager of your choice (npm, yarn, etc.) in order to install all dependencies

npm install
yarn install

Usage

In order to run this project 2 scripts will need to be executed dev:react and dev:electron, run each one in a different terminal and always run dev:react before dev:electron, or dev to run them in order automatically

npm run dev:react
npm run dev:electron

or

npm run dev

Add Sqlite3

npm install sqlite3 knex

or

yarn add sqlite3 knex

Add script to rebuild sqlite3

Add in the package.json scripts "postinstall":"electron-builder install-app-deps"

run the script then add the following line to the electron webpack

externals : {sqlite3: 'commonjs sqlite3', knex: 'commonjs knex'},

Packaging

To generate a project package run package

npm run package

Contributing

Pull requests are always welcome 😃.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published