Skip to content

ographiesresearch/resonant_frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resonant Frontend

Screenshot 2023-09-05 at 9 15 57 AM

Netlify Deployment

https://elaborate-kitsune-f9e948.netlify.app/

This is the frot end for the Solar Low-Income Tax Credit Map, currently deployed on Netlify. built using Svelte, SvelteKit, Node, Bulma, and Mapbox that can be easily customized using the fields in src/config/instance.json, as well as the layers and geomtries provided.

Configuration

Node

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

MapBox Token

For the application to run, you'll need a MapBox token. The application expects it to be stored in a .env file in the root directory. E.g., this file should look like...

MAPBOX_TOKEN='your token here`

Important note: the 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 css-build && npm run dev from the root folder. (On subsequent runs, you can simply run npm run dev. This starts a vite server (vite dev) and a node-sass watcher that watches for changes in src/styles/style.scss (the latter supports rapid Bulma development).