Building SQLite 3 for Electron in Windows

In this tutorial, we'll see how to use SQLite 3 with Electron. We'll specifically look at how to setup SQLIte 3 to work with Electron in a Windows development environment.

Installing Electron is straightforward and easy but unfortunately that's not the case for SQLite 3 as it requires compiling to target the Electron ABI for Windows.

In nutshell. The steps required for setting up SQLIte 3 with Electron are:

  • Step 1: Installing Node.js and NPM for Windows
  • Step 2: Installing Electon, electron-prebuilt and electron-rebuild
  • Step 3: Installing SQLite 3
  • Step 4: Installing node-gyp
  • Step 5: Installing python 2.7 and visual c++ dependencies
  • Rebuild sqlite3 using electron-rebuild -f -w sqlite3
Note: We also publish our tutorials on Medium and If you prefer reading in these platforms, you can follow us there to get our newest articles.

You can reach the author via Twitter:

About the author

Ahmed Bouchefra
is a web developer with 5+ years of experience and technical author with an engineering degree on software development. You can hire him with a click on the link above or contact him via his LinkedIn account. He authored technical content for the industry-leading websites such as SitePoint, Smashing, DigitalOcean, RealPython, freeCodeCamp, JScrambler, Pusher, and Auth0. He also co-authored various books about modern web development that you can find from Amazon or Leanpub

Get our Learn Angular 8 in 15 Easy Steps ebook in pdf, epub and mobi formats, plus a new Angular 8 tutorial every 3 days.

comments powered by Disqus Protection Status