This page is a reference for the person who looks after the store PC. It describes an installed copy of EraPOS 1.0.3 in C:\EraPOS.

Addresses and ports

AddressWho uses itNotes
http://127.0.0.1:17831/The store PC itself: the EraPOS window, or a browser on that PCAnswers only on that PC. It is never opened to the network.
https://<store PC>:17833/StationsExists once the network connection is set up. <store PC> is the PC's name or its address on the shop's network.
https://<store PC>:17833/check-inBrowser check-in tabletsThe same port. The check-in app uses port 17833 too.
Your WBAMS site, HTTPSThe store PC, outboundThe store PC calls WBAMS. Nothing calls in from the internet.
EraPOS, HTTPSThe store PC, outboundFor activation and your licence, once the store PC is linked to your EraPOS account.
A network receipt printer, port 9100The store PC, outboundOnly to an address on the shop's network.
  • Port 17831 must be free on the store PC. One PC holds one EraPOS.
  • The store PC answers on port 17833 only to the names and addresses listed when the network connection was set up: the PC's name and the addresses it had then.
  • Give the store PC a fixed address. In the router, reserve its address so it always gets the same one. A new address is not in the certificate or the firewall rule until the certificate is renewed for it.

The network connection

Setting up the network connection is done once. Add stations has the steps. It does this:

  • Makes an HTTPS key and certificate for this store PC, valid for two years.
  • Saves the key in C:\EraPOS\local\data\lan, a folder only this Windows user, SYSTEM and Administrators can open.
  • Writes the public certificate to C:\EraPOS\local\EraPOS-LAN-Server.cer. This is the file other devices trust. It holds no secret.
  • Shows the certificate's SHA-256 fingerprint, its expiry date and the server address.

Run again, the script stops with Secure access is already set up, and stations trust its certificate. To renew the certificate, or after this PC's address or name changed, run this script again with -Renew.

With -Renew, run as the Windows user who runs EraPOS, the script makes a new key and certificate for the name and addresses the PC has today, valid for two years. It keeps the port. It keeps the earlier key and certificate in a folder named previous- with the date and time, inside C:\EraPOS\local\data\lan. After a renewal, every station and tablet has to trust the new certificate. See When the address changes or the certificate expires.

What the firewall step opens

The firewall step is C:\EraPOS\local\scripts\Enable-LAN.cmd, run as administrator. For each address on the shop's network that the store PC was set up with, it adds one inbound rule to Windows Firewall, named EraPOS HTTPS on and the address.

Port
TCP 17833 only. Port 17831 is never opened.
To
That one address of the store PC, on that one network adapter.
From
Devices on the same local network only. Nothing from the internet.
Program
EraPOS's own server program only.
Networks
Networks Windows treats as private or work. On a network Windows calls Public, the rule does not apply.
Addresses it accepts
Private addresses: 192.168.x.x, 10.x.x.x and 172.16.x.x to 172.31.x.x.

The step does not change how Windows classes the network. If Windows calls the shop's network Public, the step says so. Set the network to Private in Windows: Settings → Network & internet, the connection, Private network.

Running the step again replaces its own rules. It is safe to repeat. Run after a renewal, it also removes its own rule for an address that is not in the network settings any more.

The install folder

Setup installs to C:\EraPOS and makes the folder private to the Windows user who installs it, plus SYSTEM and Administrators.

ItemWhat it is
EraPOS.exeShows the start screen, starts the store server if it is not running, then opens the EraPOS window, without a frame, above the taskbar. The shortcuts point here.
Start EraPOS.cmdThe same, as a command file.
Uninstall EraPOS.exeRemoves the program. The store's data stays unless you ask to delete it too.
README.mdA short guide: what Setup installed, and how to start, back up, update and uninstall EraPOS.
RELEASE-NOTES.md, THIRD-PARTY-NOTICES.mdNotes for this version, and third-party notices.
install-manifest.txtThe program items Setup installed. It tells an update and Uninstall what is program and what is the store's.
current\The EraPOS window.
local\server.mjs, local\src\The store server.
local\web\The screens the server shows: the POS, its settings pages among them, and check-in.
local\runtime\The runtime the server runs on. EraPOS uses its own and no other.
local\scripts\Windows scripts: start at sign-in, the network connection, the firewall step and backup.
local\licenses\Third-party licences.

EraPOS makes the rest while it runs. Setup never replaces these, and an update keeps them.

ItemWhat it is
local\data\The store's data. See below.
local\logs\Logs. See below.
local\backups\Backups. See below.
EBWebView\The EraPOS window's own browser profile, with what this register keeps for itself.
local\EraPOS-LAN-Server.cerThe store PC's public certificate, once the network connection is set up.
EraPOS-launcher.logWritten only when EraPOS could not start.

Where the data is

In C:\EraPOS\local\dataWhat it holds
erapos.dbThe database: customers, tickets, appointments, employees, sales and settings. While EraPOS runs, working files with the same name sit beside it.
lan\The store PC's HTTPS key and network settings. Keep this folder private.
central\The saved WBAMS connection, encrypted by Windows for this Windows account.
control\The saved link to your EraPOS account, encrypted the same way.
checkin\Signatures on waivers signed in the check-in app.
employee-photos\Employees' pictures.
printer.jsonThe printer the EraPOS window took from the register's POS profile. EraPOS writes it itself. Nobody has to make or edit it.
Do not copy the database by hand while EraPOS is running.

Use the backup script. It makes a complete copy and checks it. Copying the file alone while the server works can miss the latest sales.

Logs

FileWhat is in it
C:\EraPOS\local\logs\server.logErrors of the store server, and a line when the network connection could not start.
C:\EraPOS\local\logs\supervisor.logEach time the server was started at sign-in or restarted, and a line when port 17831 was taken by something else.
C:\EraPOS\local\logs\desktop.logPrinter and cash drawer errors, every opening of the cash drawer, and a note when the saved printer choice could not be read.
C:\EraPOS\local\logs\setup.logWhat each run of Setup or Uninstall did.
C:\EraPOS\EraPOS-launcher.logWhy EraPOS could not start: what the start screen said, with the time.

Backups

Your own backups
C:\EraPOS\local\scripts\Backup-EraPOS.ps1 makes local\backups\server- with the date and time. It never writes over an earlier backup.
What a backup holds
A complete, checked copy of the database. Also, when they exist: the network key, its settings and the public certificate, the encrypted WBAMS connection, the encrypted link to your EraPOS account, employees' pictures, check-in signatures and the printer choice. The script lists what it took.
Copies made by Setup
Before an update, Setup copies local\data to local\backups\before-update- with the version, date and time. The network key is left out. Setup keeps the three newest.
Who can open them
A backup folder is private to the same Windows user, SYSTEM and Administrators.
  • A backup on the store PC does not survive a broken or stolen PC. Keep a copy elsewhere.
  • The saved WBAMS connection opens only for the Windows account, on the installation, that saved it. Restored anywhere else, connect to WBAMS again.
  • The link to your EraPOS account is sealed in the same way. Restored anywhere else, activate again with a new pairing code.
  • The network key opens only for the Windows account that set it up. Restored for another account, set the network connection up from the start.
  • A backup is a copy of the database as it was on the day it was made. EraPOS 1.0.3 keeps the last four digits of a payment card's number and nothing more of the number, and it keeps employees' POS passwords only as keyed hashes. A backup made after the update holds the same. Delete the backups made before the update, the before-update- copies among them, or lock them away, once you are satisfied with the update. See Backups made before EraPOS 1.0.3.

Steps are in Backup and restore.

The task that starts the server at sign-in

Setup's option Start the EraPOS server when you sign in to Windows adds a scheduled task named EraPOS Local Server.

When
When the Windows user who installed EraPOS signs in.
What it runs
C:\EraPOS\EraPOS.exe --supervise, with no window.
What it does
Starts the store server if nothing answers on port 17831, then looks again every few seconds and starts it again if it stopped.
With which rights
That user's ordinary rights. It is not run as administrator, and no password is stored.
  • The server keeps running when the EraPOS window is closed.
  • The PC must stay on, with that user signed in. A locked screen is fine. Signing out, shutting down or letting the PC sleep stops the server, and every station and tablet with it.
  • Setup also adds a start-up entry for the same user, named EraPOSLocalServer, which starts the server at sign-in.
  • If another program holds port 17831, the task waits and writes one line to supervisor.log. The server starts when the port is free.
  • Uninstall removes the task and the entry.

To add the task again and start the server at once, run this in PowerShell as the Windows user who runs EraPOS:

powershell -ExecutionPolicy Bypass -File "C:\EraPOS\local\scripts\Install-ServerStartup.ps1" -StartNow

To see whether the server is running, open http://127.0.0.1:17831/health in a browser on the store PC. A running server answers with one line that starts with {"ok":true,"name":"EraPOS" and names its version.