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
| Address | Who uses it | Notes |
|---|---|---|
http://127.0.0.1:17831/ | The store PC itself: the EraPOS window, or a browser on that PC | Answers only on that PC. It is never opened to the network. |
https://<store PC>:17833/ | Stations | Exists 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-in | Browser check-in tablets | The same port. The check-in app uses port 17833 too. |
| Your WBAMS site, HTTPS | The store PC, outbound | The store PC calls WBAMS. Nothing calls in from the internet. |
| EraPOS, HTTPS | The store PC, outbound | For activation and your licence, once the store PC is linked to your EraPOS account. |
| A network receipt printer, port 9100 | The store PC, outbound | Only 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.
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.
| Item | What it is |
|---|---|
EraPOS.exe | Shows 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.cmd | The same, as a command file. |
Uninstall EraPOS.exe | Removes the program. The store's data stays unless you ask to delete it too. |
README.md | A short guide: what Setup installed, and how to start, back up, update and uninstall EraPOS. |
RELEASE-NOTES.md, THIRD-PARTY-NOTICES.md | Notes for this version, and third-party notices. |
install-manifest.txt | The 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.
| Item | What 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.cer | The store PC's public certificate, once the network connection is set up. |
EraPOS-launcher.log | Written only when EraPOS could not start. |
Where the data is
In C:\EraPOS\local\data | What it holds |
|---|---|
erapos.db | The 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.json | The printer the EraPOS window took from the register's POS profile. EraPOS writes it itself. Nobody has to make or edit it. |
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
| File | What is in it |
|---|---|
C:\EraPOS\local\logs\server.log | Errors of the store server, and a line when the network connection could not start. |
C:\EraPOS\local\logs\supervisor.log | Each 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.log | Printer 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.log | What each run of Setup or Uninstall did. |
C:\EraPOS\EraPOS-launcher.log | Why EraPOS could not start: what the start screen said, with the time. |
Backups
C:\EraPOS\local\scripts\Backup-EraPOS.ps1 makes local\backups\server- with the date and time. It never writes over an earlier backup.local\data to local\backups\before-update- with the version, date and time. The network key is left out. Setup keeps the three newest.- 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.
C:\EraPOS\EraPOS.exe --supervise, with no window.- 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.