Learning Svelte

This post is my notes when creating All in pre Flop, a small svelte app used to determine the odds of winning a hand at hold’em. Svelte is very easy to get started, the starter command creates a minimal project. npx degit sveltejs/template all-in-pre-flop-svelte cd all-in-pre-flop-svelte npm install This creates a project with the following npm scripts "build": "rollup -c", // builds the app for production (exports files into public folder) "dev": "rollup -c -w", // starts a server serving on localhost:5000, rebuilds the app every file change "start": "sirv public" // starts a server pointing to the public folder There are no “controllers” in svelte, just components, these have extension ....

April 10, 2020