This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
const fs = require('fs-extra'); | |
const glob = require('glob'); | |
const promisify = require('util.promisify'); | |
const globAsync = promisify(glob); | |
const getAllFiles = async () => { | |
const allFiles = await globAsync('../content/**/*.de.md'); | |
for (const file of allFiles) { | |
await fs.copy(file, file.replace('.de.md','.test.md')); |
<!-- Source: https://twitter.com/etportis/status/1113887359555100672 --> | |
<img src="data:image/svg+xml;charset=utf-8, | |
<svg xmlns='http://www.w3.org/2000/svg ' | |
width='1280' height='720' />" | |
data-src="lazy.jpg" | |
alt="A lazy Jpeg" /> |
# stop all | |
docker stop $(docker ps -a -q) | |
# prune | |
docker system prune --all | |
# volume prune | |
docker volume prune |
This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
You can run your Express app very easily inside your Electron app.
All you need to do is to:
your_electron_app\resources\app
app.js
fileThis is a short example how to get the Node.js package serialport up and running with Windows 7 (this should also work for higher versions of Windows, but I didn't test that).
By using this package, you will be able to send and receive data to and from the serial port of your Arduino or any other device, using this port.
As of September 16, 2015, serialport does not compile using Node.js version: v4.0.0