Leadlantern docs
v1.0.0
Get help
● Run · Windows users

Windows
running the commands on a PC.

Leadlantern runs on Node.js, which runs on Windows, but the commands in these pages are written for macOS and Linux shells. Production belongs on a Linux server.

WSLGit BashPowerShell

01Three ways

  • WSL (recommended): in an administrator PowerShell run wsl --install, restart, open Ubuntu and follow the Linux steps inside it. This matches the server you will deploy to.
  • Git Bash: the commands work as written; openssl ships with Git for Windows.
  • PowerShell: use Copy-Item .env.example .env instead of cp, and generate the key with the line below.
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

02The SQLite driver

better-sqlite3 ships prebuilt binaries for common systems. When none matches your Node.js version it compiles one, which on Windows needs the Visual Studio Build Tools ("Desktop development with C++"). Inside WSL install build-essential python3 instead.

03Production

Report and unsubscribe links need a public https address, which a desktop PC behind a home router does not have. Run production on a Linux server (Installation).