Here's all the code you'll need to get up and running for the NICAR 2026 session on building a SvelteKit data app.
This project uses:
In the home directory, run a standard install to get the project's dependencies.
npm install
After that, start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
...
Don't look down here unless you really want the answers!
...
No spoilers!
...
Last alert!
...
<Card
image={breed.id}
title={breed.name}
subtitle={breed.temperament}
description={breed.description}>
</Card>
let { image, title, subtitle, description } = $props();
<div class="w-full flex bg-gray-300 px-8 py-2 justify-center">
<div>
Country of Origin:
</div>
<select bind:value={$selectedCountry}>
<option value='All'>All countries</option>
{#each options as country}
<option value={country}>{country}</option>
{/each}
</select>
</div>
setContext('filteredBreeds', () => breedsList);