Skip to content

amarton/voterguide-nicar

Repository files navigation

Voter guide

This code can be used to build a voter guide site. It runs on SvelteKit and uses Datasette as an API.

Feel free to use and modify this for your own projects, but please be sure to change the frontend design and styling.

Note: The Datasette API links have been removed, but the test data I used is available in the “test-db” folder so you can set up and host your own database if you choose.

See documentation and how-to guide here: https://docs.google.com/document/d/1r1ssu5uC6caJ4BFJcmhTL3eYBaBOnuh5XgSysL9C6Tk/edit?usp=sharing

See this code in action here: https://schoolboard2024.netlify.app/

This site is built on SvelteKit. Follow the instructions below to get Svelte set up locally:

create-svelte

Everything you need to build a Svelte project, powered by create-svelte.

Creating a project

If you're seeing this, you've probably already done this step. Congrats!

# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors