Geometric Bayes Theorem

Geometric Bayes Theorem

3blue1brown-inspired interactive visualization of Bayes theorem. Just a side-project to learn some Svelte.

Get it running locally

  1. Clone and install dependencies:

    git clone https://github.com/janosh/svelte-geometric-bayes
    cd svelte-geometric-bayes
    yarn
    
  2. 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.

Building and running in production mode

To build and preview an optimized production version of the app, run

yarn serve

Deploying to Netlify

Install netlify if you haven't already:

yarn global add netlify-cli

Then, from within this project's folder:

netlify deploy --build --prod

Formatting

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"
}

Top categories

Loading Svelte Themes