svelte-sapper-spending Svelte Themes

Svelte Sapper Spending

Svelte / Sapper: Expense calculation application. (Demo on Heroku)

Svelte.js - Expense calculation application

December 2020

🔨 Expenses calculation application made with Svelte.

From Udemy: Svelte de A à Z


Demo on Heroku

About

Simple application to calculate expenses. Expenses are displayed in cards and you can add or delete them.

How to test

  • Clone
  • npm install
  • npm run dev

How to make a Github page

  • Pages must be served with Sapper
  • Link the app to a Github repository
  • npm install -D gh-pages
  • Modify package.json
"scripts": {
    "dev": "sapper dev",
    "build": "sapper build --legacy",
    "export": "sapper export --legacy",
    "start": "node __sapper__/build",
    "deploy": "sapper export --legacy &&  gh-pages -d __sapper__/export"
},
  • npm run deploy
  • set the gh-pages branch that was just deployed as the main branch for GitHub Pages to read from.

How to deploy on Heroku

  • heroku login
  • heroku create my-app
  • git push heroku HEAD:master

Top categories

Loading Svelte Themes