sapper-svelte-todo-application Svelte Themes

Sapper Svelte Todo Application

Code for Sapper/Svelte tutorial

A simple Sapper/Svelte TODO application

Built for this tutorial.

Running the project

Install the dependencies and run the project:

npm install # or yarn
npm run dev

You should see the project running on localhost:3000.

Static rendering

Run:

npm run export

Your compiled project will now sit in __sapper__/export.

Deploying to Netlify

If you'd like to host your static build on Netlify, it's extremely simple:

  • Log in to your Netlify account
  • Create a new site from Git and select your repository
  • Select your branch
  • Set the build command as npm run export
  • Set the publish directory as __sapper__/export

Top categories

Loading Svelte Themes