3blue1brown-inspired interactive visualization of Bayes theorem. Just a side-project to learn some Svelte.
Clone and install dependencies:
git clone https://github.com/janosh/svelte-geometric-bayes
cd svelte-geometric-bayes
yarn
Start the svelte-kit
development server:
yarn dev
Navigate to http://localhost:3000. You should see this app running. Edit a component file in src
, save it. The dev server should hot-reload with your changes.
To build and preview an optimized production version of the app, run
yarn serve
Install netlify
if you haven't already:
yarn global add netlify-cli
Then, from within this project's folder:
netlify deploy --build --prod
When using VS Code, install the official Svelte extension and add the following to your settings.json
to enable autoformating Svelte files on save:
"[svelte]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "svelte.svelte-vscode"
}