Skip to content

Installation

Guilherme Cardoso edited this page Sep 13, 2026 · 1 revision

Installation

This guide installs the server and web UI from source. For containers, use the Docker guide.

Requirements

  • Node.js 20 and npm
  • Git
  • OpenSSL if generating an ingest token or TLS certificate
  • MSFS 2020/2024 or FSX on Windows

The repository pins Node 20 in .nvmrc. Use it before installing because better-sqlite3 is a native module and very new Node ABIs may be unsupported.

git clone git@github.com:oshogun/msfslogger.git
cd msfslogger
nvm install
nvm use
npm install
cd client
npm install
cd ..

Puppeteer downloads Chromium during installation (approximately 300 MB), which is required for PDF export.

Build

npm run build

This compiles the React application into client/dist and the TypeScript server into dist.

First run

Create the single operator account after building:

npm run set-password

The command prompts for a username (default operator) and password. Running it again changes the password. Existing browser sessions are not invalidated.

Create an ingest token shared by the server and remote Windows agent:

export INGEST_TOKEN="$(openssl rand -hex 24)"

For a loopback-only test:

export BIND_HOST=127.0.0.1
npm start

Open http://localhost:3000.

For access over a LAN, configure HTTPS before starting. See Configuration and Security. Plain HTTP on a non-loopback interface requires an explicit insecure opt-out and should only be used on a trusted LAN.

Connect the simulator

If the server is on the simulator's Windows PC, no separate agent is required. Otherwise, follow Windows Agent. The server receives agent frames at /api/ingest/*.

Start in production

npm run build
npm start

The default bind address is 0.0.0.0 and the default port is 3000. The server refuses to start without an operator account, an ingest token (or its explicit opt-out), and TLS when listening beyond loopback (or its explicit opt-out).

Updating

git pull --ff-only
nvm use
npm install
cd client && npm install && cd ..
npm run build
npm test
npm start

Read Operations and Backups before upgrading an existing deployment.

Clone this wiki locally