Skip to content

gencharitaci/quality-of-life-explorer

 
 

Repository files navigation

Quality of Life Explorer

The Quality of Life project is a joint venture from Mecklenburg County, the City of Charlotte, and UNCC. It's built with Svelte, TailwindCSS, and Maplibre GL JS. The development and build environment is Vite.

Site: https://mcmap.org/qol

Architecture

Architecture

The Quality of Life Explorer includes the main site (index.html), an embed page (embed.html), and a report (report.html). All pages share the same collection of Svelte components.

See the data/README.md file for information on the data format.

The base vector tiles are set a .env file in the root of the project using the VITE_MAPTILES environmental variable, which should point to a Mapbox Vector Tile spec JSON document. Ex:

VITE_MAPTILES="https://server.com/your-style.json"

Using the project

Node.js is required to run the development and build systems, and git is required to use the versioning system.

Clone the project

git clone https://github.com/tobinbradley/quality-of-life-explorer

Install dependencies

cd quality-of-life-explorer
npm install

Start the development server

npm run dev

Navigate a web browser to http://localhost:3000 to view the HMR live development server.

Build for production

npm run build

After the build is complete, copy the contents of the dist folder to the production web server.

About

Mecklenburg County Quality of Life Explorer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 62.7%
  • JavaScript 20.6%
  • HTML 14.7%
  • CSS 1.4%
  • Python 0.6%