{"id":19772494,"url":"https://github.com/mit-spatial-action/svelte-map-app","last_synced_at":"2025-04-30T18:30:39.516Z","repository":{"id":184013580,"uuid":"671164809","full_name":"mit-spatial-action/svelte-map-app","owner":"mit-spatial-action","description":"Svelte template for an Mapbox-based application that includes common functionality geocoding, add marker on click, active location state management).","archived":false,"fork":false,"pushed_at":"2024-02-16T16:56:32.000Z","size":241,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-16T20:27:41.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mit-spatial-action.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-26T17:27:58.000Z","updated_at":"2024-02-16T20:27:44.410Z","dependencies_parsed_at":null,"dependency_job_id":"4d624fa4-94c2-4bec-8db5-4dcc4fca3ca3","html_url":"https://github.com/mit-spatial-action/svelte-map-app","commit_stats":null,"previous_names":["unnamed-lab-dusp/svelte-map-app","mit-spatial-action/svelte-map-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-spatial-action%2Fsvelte-map-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-spatial-action%2Fsvelte-map-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-spatial-action%2Fsvelte-map-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mit-spatial-action%2Fsvelte-map-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mit-spatial-action","download_url":"https://codeload.github.com/mit-spatial-action/svelte-map-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224219673,"owners_count":17275477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T05:06:42.883Z","updated_at":"2024-11-12T05:06:43.433Z","avatar_url":"https://github.com/mit-spatial-action.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-map-app\n\n\u003cimg width=\"1333\" alt=\"screenshot\" src=\"https://github.com/Unnamed-Lab-DUSP/svelte-map-app/assets/10646361/1bb15da4-d70e-4a84-8349-9d8cb00fef13\"\u003e\n\nThis is a simple templated mapping application, built using Svelte, SvelteKit, Node, Bulma, and Mapbox that can be easily customized using the fields in `src/config/instance.json`. It includes basic, but common, documentation pages, which can be written in markdown, and the map allows the user to select locations using click events or forward geocoding, which populate a bare-bones info panel.\n\n## Configuration\n\n### Node\nAssuming you have node installed, you can install all dependencies by running `npm install` from the root directory.\n\n### MapBox Token\nFor 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...\n\n```\nMAPBOX_TOKEN='your token here`\n```\n\nImportant 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. \n\n## Running\nRun `npm run css-build \u0026\u0026 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). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmit-spatial-action%2Fsvelte-map-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmit-spatial-action%2Fsvelte-map-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmit-spatial-action%2Fsvelte-map-app/lists"}