Mecklenburg County historic scans viewer, built with Svelte, TailwindCSS, and Leaflet. The development and build environment is Vite.
Site: https://maps.mecknc.gov/thearchive
The Archive is a single page application (SPA) and a progressive web app (PWA). Scan images are located on a web server folder. A database table accessed through the Dirt API is an index of the images used for searches and to return additional information. The Dirt API is also used to autocomplete addresses to return the tax book and page for the tax map scans.
Leaflet is being used as a non-spatial image viewer - the images are not spatial.
Node.js is required to run the development and build systems, and git is required to use the versioning system.
git clone https://github.com/tobinbradley/thearchive.git
cd thearchive
npm install
npm run dev
Navigate a web browser to http://localhost:3000 to view the HMR live development server.
npm run build
After the build is complete, copy the contents of the dist
folder to the production web server.