![Screenshot 2023-09-05 at 9 15 57 AM](https://private-user-images.githubusercontent.com/10646361/265710239-5af1c24c-e47b-4e13-be42-7696b2e45b32.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2ODEzNzksIm5iZiI6MTcyNTY4MTA3OSwicGF0aCI6Ii8xMDY0NjM2MS8yNjU3MTAyMzktNWFmMWMyNGMtZTQ3Yi00ZTEzLWJlNDItNzY5NmIyZTQ1YjMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDAzNTExOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmMTliYjk3ODEyMDkzMzk1OTQyOGM4ODFlOTA1M2M0MWYyZWRmNzA1YzQxYzQyNjNiZjE2NzUxNWFiYjZlZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.apT7b7VM2Ev2J3iqI07MjpDOlt0JDsG6L3EvAUQMjBY)
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.
Assuming you have node installed, you can install all dependencies by running npm install
from the root directory.
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.
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).