December 2020
🔨 Expenses calculation application made with Svelte.
From Udemy: Svelte de A à Z
Simple application to calculate expenses. Expenses are displayed in cards and you can add or delete them.
- Clone
npm install
npm run dev
- 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.
heroku login
heroku create my-app
git push heroku HEAD:master