The Reference system's mixed environment - legacy mSupply, Open mSupply, the Health Supply Hub and Grafana ========================================================================================================= Everything in this folder is from one night (manifest.json says which), so the four parts match: restored together, legacy mSupply and Open mSupply carry on syncing with each other where they left off, and nothing has to be initialised. Every login - legacy mSupply's users, Open mSupply's, the Hub's - has the Reference system's published demo password. What you need (the versions it was made on - manifest.json lists them too): mSupply Server V9-03-07 for the legacy mSupply datafile PostgreSQL 17 or later for the Open mSupply central Open mSupply Server v3.3.1 the PostgreSQL build; an older one refuses a database a newer one made Health Supply Hub v1.1.2 for the Hub's data (the program is not included) Grafana 13 (optional) for the dashboards The files: reference-system-legacy-msupply.4BK the legacy mSupply datafile, a 4D backup: the Central Medical Store reference-system-open-msupply-central.dump the Open mSupply central (PostgreSQL custom format): every other store reference-system-hsh-data.zip the Health Supply Hub's database and files (its own README inside) setup.ps1, setup.sql restores the central and makes Grafana's read-only login manifest.json the night, the edition, each file's size and SHA-256, the versions reference-system-sample-tender-documents.zip three made-up documents - a tender's specifications, a supplier's paper quotation, a batch's certificate of analysis - to practise the tender module's document uploads with 1. LEGACY mSUPPLY. In mSupply Server V9-03-07, restore reference-system-legacy-msupply.4BK (File > Restore) and open the restored datafile. Turn its web server on, on port 8080 - the Open mSupply central syncs with it there. It is ready for the central already: its sync site "Open mSupply central" has the demo password and is not tied to any machine, so your central is accepted the first time it connects. Do not sign in as that site from anything else, or it is tied to that machine instead. 2. THE OPEN mSUPPLY CENTRAL. Install PostgreSQL and Open mSupply Server v3.3.1, then in PowerShell, in this folder: powershell -ExecutionPolicy Bypass -File .\setup.ps1 It checks the dump against manifest.json, restores it into a new database (open-msupply-database), creates grafana_ro (it asks you for its password), and prints the database lines for Open mSupply's configuration\local.yaml. Without the script: createdb, then pg_restore -d open-msupply-database --no-owner --no-privileges -j 4 reference-system-open-msupply-central.dump psql -d open-msupply-database -v grafana_password='' -f setup.sql 3. START OPEN mSUPPLY. No sync settings to type: the database holds them - legacy mSupply at http://localhost:8080, as the site "Open mSupply central", with the demo password. It goes to its login screen, not to initialising, and carries on syncing. If legacy mSupply's web server is on another port, put the full sync section in local.yaml: url, username "Open mSupply central", password_sha256 (the SHA-256 of the demo password) and interval_seconds. 4. THE HEALTH SUPPLY HUB. Unzip reference-system-hsh-data.zip and follow its README. Legacy mSupply's HSH integration already points at http://localhost:8006 with the Hub's moh-integration login, so a Hub on this computer on that port connects as it is. 5. GRAFANA (optional). The dashboard definitions are a separate download (manifest.json gives the link): unzip them and follow their README, with REF_DB_URL=localhost:5432 REF_DB_NAME=open-msupply-database REF_DB_USER=grafana_ro REF_DB_PASSWORD= The dates are the night the set was made: the story ends the day before. They do not move on their own - the Reference system's own copy is reset and moved to the current date every night; yours stays where it was.