Skip to content

chrisboakes/sapper-svelte-todo-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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