EasyMarquee — server edition
============================

Runs the whole of EasyMarquee on your own machine, on your own network, and you
use it from a normal web browser. Nothing is sent to us, and no account on our
side is involved: this install has its own database, its own sign-in and its own
30-day trial.

REQUIREMENTS
  Node.js 22.5 or newer  (https://nodejs.org)

START IT
  Windows        : double-click START-WINDOWS.bat
  macOS / Linux  : bash start-mac-linux.sh
  Or by hand     : npm install --omit=dev  &&  npm start

  This runs EasyMarquee for as long as that window stays open. For a machine
  that serves your displays day to day, use START AUTOMATICALLY below instead.

START AUTOMATICALLY (recommended for signage)
  Your displays can only play while EasyMarquee is running, so the machine
  serving them should start it by itself after a restart or power cut. Each of
  these also restarts EasyMarquee if it ever stops. Close any START window
  first; two copies can't share the port.

  Windows : double-click INSTALL-SERVICE-WINDOWS.bat and allow the
            administrator prompt. It starts when the PC starts, before anyone
            signs in, and lets displays on your local network through the
            Windows firewall. Output goes to logs\easymarquee.log.
            To undo: UNINSTALL-SERVICE-WINDOWS.bat
  Linux   : bash install-service-linux.sh        (systemd; asks for sudo)
            Output: journalctl -u easymarquee -f
            To undo: bash install-service-linux.sh uninstall
  macOS   : bash install-service-mac.sh          (no sudo)
            Starts when you sign in; for an unattended Mac turn on automatic
            login. Output goes to logs/easymarquee.log.
            To undo: bash install-service-mac.sh uninstall

  Another port instead of 3700:
    Windows      : powershell -ExecutionPolicy Bypass -File windows-service.ps1 -Port 8080
    Linux / macOS: PORT=8080 bash install-service-linux.sh   (or -mac.sh)

  UPDATING: run the uninstall step, copy the new version's files over this
  folder (your data/ and media/ folders are kept), then install again.

FIRST RUN
  1. Open http://localhost:3700 in a browser.
  2. Enter your email. Because email sending isn't configured, the sign-in link
     is printed in the terminal window (or the log, when it starts
     automatically - see above) - copy it into your browser.
     The first person to sign in owns this install.
  3. On each display device, open the address the app shows you, e.g.
        http://192.168.1.20:3700/player/
     Each display registers itself automatically.

USING IT FROM ANOTHER COMPUTER OR YOUR PHONE
  The dashboard is served to your whole network. On the machine running
  EasyMarquee, click "Another device", then open the address it gives you on
  the other device and enter the code shown. No email needed.

CONFIGURATION (all optional, set as environment variables)
  PORT                 default 3700
  HOST                 default 0.0.0.0 (all network interfaces)
  MARQUEE_DATA_DIR     where the database is kept   (default ./data)
  MARQUEE_MEDIA_DIR    where uploads are kept       (default ./media)
  SMTP_URL             e.g. smtp://user:pass@host:587 - set this and sign-in
                       links are emailed instead of printed to the terminal
  ADMIN_EMAIL          seeds the owner account on first start

BACKING UP
  Copy the data/ and media/ folders. Important: copy ALL of data/, including the
  marquee.db-wal file - the .db on its own can be missing recent changes.

LICENSE
  Free for 30 days, then a one-off license per install. Your displays keep
  playing either way; only making changes needs a key.
  https://easymarquee.com/#pricing
