FINDABLE: SET-UP FOR __SITE__
==============================================================================

This folder is the whole supplier finder: the search page, the data, the downloads and a copy of the article.
Nothing needs a database, a plugin or a build step on the server. Upload it and it works.

WHAT IS IN THE FOLDER
  index.html             The supplier finder (landing page), with the "Download the whole database" links.
  article.html           A copy of the article. The blog post is the main home; this copy backs it up.
  config.js              The only file you may want to edit (article link, corrections contact).
  data/suppliers.json    The register the finder searches (__N__ businesses).
  data/stats.json        Small summary the blog article reads for its live record count.
  downloads/             The whole database (ZIP), CSV, JSON, builder kit and offline finder.
  assets/                Icons, share images and the Overpass font (self-hosted, no Google calls).
  manifest.webmanifest   Lets phones add the finder to the home screen.
  sw.js                  Offline support on phones after the first visit.
  .htaccess              Server settings (hidden file). downloads/.htaccess makes files save, not open.

STEP 1  UPLOAD
  1. Unzip SMEProjectCanada-upload.zip. You get a folder called SMEProjectCanada.
     On a Mac the two .htaccess files are hidden; press Cmd+Shift+. in Finder to see them. Upload them too.
  2. Upload the folder into the web root of www.chinookstrategy.com, so that this file exists:
        <web root>/SMEProjectCanada/index.html
     On DreamHost the web root is usually /home/<your user>/chinookstrategy.com/ (use SFTP or the DreamHost file manager).
  3. Keep the capital letters: SMEProjectCanada. Web addresses on Linux servers are case-sensitive.

STEP 2  CHECK (open each address; all should work)
  __SITE__                                          Finder loads, map shows dots, results appear.
  __SITE__article.html                              The article.
  __SITE__data/stats.json                           A few lines of text with "records": __N__.
  __SITE__downloads/findable-database.zip           Downloads a ZIP.
  __SITE__downloads/findable-register.csv           Downloads a CSV that opens in Excel.
  On a phone: open the finder, tap Share > Add to Home Screen (iPhone) or the menu > Install app (Android).

STEP 3  CONNECT THE BLOG POST
  1. Publish the article on blog.chinookstrategy.com (see the blog-article folder's README.txt).
  2. Open config.js, paste the post's address into articleUrl, save and upload config.js.
     The finder's "Read the article" link then goes to the blog post.

UPDATING THE DATA LATER
  Rebuild with the builder kit (downloads/findable-builder-kit.zip), then upload the new data/ and downloads/ folders.
  The blog article picks up the new record count by itself from data/stats.json.

OPTIONAL: ACCEPT LOWER-CASE ADDRESSES
  If people may type /smeprojectcanada, add these lines near the top of the .htaccess in your web ROOT
  (not this folder), above any WordPress rules:
     RewriteEngine On
     RewriteCond %{REQUEST_URI} !^/SMEProjectCanada
     RewriteRule ^smeprojectcanada(/.*)?$ /SMEProjectCanada$1 [NC,R=301,L]

IF SOMETHING LOOKS WRONG
  "Internal Server Error" (500)   Your server rejected a line in .htaccess. Rename it to htaccess-off.txt; the site
                                  still works. Tell your host which line failed if you want the extras back.
  Finder says it could not load   Check data/suppliers.json was uploaded and opens in the browser.
  Asked for a password or 404     A rule in the web root's .htaccess may be catching the folder. Make sure the
                                  folder is not inside a password-protected directory.
  Blog shows old numbers          Harmless: the article falls back to the numbers printed in it. The live count
                                  needs the Access-Control-Allow-Origin line in .htaccess (mod_headers).
  Changes don't show              Purge any CDN or cache (for example Cloudflare or DreamHost's cache), then reload.
  Phone keeps an old version      Pages always check the server first; close and reopen the tab once.

PRIVACY
  No accounts, cookies, analytics or third-party requests. Searches and shortlists stay in the visitor's browser.
  Server access logs are whatever your host keeps for the rest of the site.
