who-owns-mass-frontend Svelte Themes

Who Owns Mass Frontend

Svelte/Mapbox Frontend for Who Owns Massachusetts Application.

Who Owns Massachusetts Frontend

This is the codebase for the front end of the Who Owns Massachusetts application. It's built using Svelte and SvelteKit and draws on the Bulma CSS/SCSS framework. Both production and staging branches available at...

Configuration

Node

Assuming you have node installed, you can install all dependencies by running npm install from the root directory.

.env Configuration

The application expects several environment variables in an .env file located in the project's root directory. These are...

PUBLIC_MAPBOX_TOKEN='your token here`
VITE_PUBLIC_API_URL='http://djangoserverhost'

Note that your Mapbox token will be exposed to the client! As such, before deploying, you should make sure that your token is appropriately scoped and that it has URL restrictions in place.

Running

Run npm run dev from the root folder. This starts a vite server (vite dev) and a sass watcher that watches for changes in src/styles/style.scss.

Top categories

Loading Svelte Themes