nix run .#app2-dev-server -L
To create a production version of your app:
nix build .#app2 -L
Imagine you have a resource Block
that you fetch from the api, want to store globally, and have a component that displays it nicely. The naming would be as follows:
- The
Schema
is calledBlock
and stored insrc/lib/schemas/block.ts
- The query is called
blockQuery
and stored insrc/lib/queries/block.ts
- The
Store
class is calledBlockStore
and stored insrc/lib/stores/block.svelte.ts
- The concrete instance of
BlockStore
is calledblock
- The component displaying blocks is called
BlockComponent
and stored insrc/lib/components/data/block-component.svelte
A Button
would go in src/lib/components/ui/button/index.svelte
- Go to https://icones.js.org/collection/ic?s=sharp
- Click on the item you want
- Click the Components > Svelte button
- Add it to
src/lib/components/icons
,ic:sharp-bannana
becomesSharpBannanaIcon.svelte