Version 2 of LMEC's Identifier Mint tool for minting new spatial data records in our ARK namespace. Built with SvelteKit. Manipulates a Supabase backend and a password gate to write new atlas layer metadata.
I think it needs node >=22, which means you'll probably need nvm as well.
- Clone this repository
cdinto itnpm installnpm run dev
This app deploys to https://identifier-mint.leventhal.center via Github and Netlify. It needs to deploy to Netlify, as opposed to e.g. a static site on geoservices, because the password gate depends on server-side code that wouldn't run on a static site.
For details on LMEC's Netlify build chain, see our digital project best practices.
Previously, this app deployed to Wasabi as a static site at https://geoservices.leventhalmap.org/identifier-mint. The build chain was manual, like so:
- Ran
npm run buildfrom the root - The
builddirectory should update (you can always delete this folder before younpm run buildto make sure it's updating) - Then, hand-copy the contents of
buildtovar/www/geoservices/identifier-mintin Wasabi.
SvelteKit provides documentation on deploying apps as a static site. We should only have to configure the app for this build chain once. For posterity, this is how I did it:
- Install
@sveltejs/adapter-static - Update the
svelte.config.jsaccording to SvelteKit docs - Create a file called
+layout.tsinside of/routes - Add
export const prerender = true;