nix run .#app2-dev-server -LTo create a production version of your app:
nix build .#app2 -LImagine 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
Schemais calledBlockand stored insrc/lib/schemas/block.ts - The query is called
blockQueryand stored insrc/lib/queries/block.ts - The
Storeclass is calledBlockStoreand stored insrc/lib/stores/block.svelte.ts - The concrete instance of
BlockStoreis calledblock - The component displaying blocks is called
BlockComponentand 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-bannanabecomesSharpBannanaIcon.svelte