ic-sqlite-svelte-demo Svelte Themes

Ic Sqlite Svelte Demo

Demo canister of using sqlite with a Svelte frontend

ic-sqlite-svelte-demo

A simple demo canister of using Sqlite with a Svelte frontend.

Features

  • Backend using ic-rusqlite
  • Svelte frontend
  • Server-side input validation
  • ic-test testing framework for testing the backend functions
  • No client-side input validation - this is to allow experimenting with the wrong data input

Prerequisites

Also, install some extra tools.

For canister development:

cargo install wasi2ic

cargo install ic-wasm

For test development:

cargo install ic-test

Running the project locally

If you want to deploy the project locally, you can use the following commands:

dfx start --background

npm install

dfx deploy

Testing

To run tests, you need to first compile the project, you can do it with:

dfx build

Then start the integration tests with:

cargo test -p tests

Top categories

Loading Svelte Themes