|
|
1 mesiac pred | |
|---|---|---|
| .vscode | 1 mesiac pred | |
| messages | 1 mesiac pred | |
| project.inlang | 1 mesiac pred | |
| src | 1 mesiac pred | |
| static | 1 mesiac pred | |
| .gitignore | 1 mesiac pred | |
| .npmrc | 1 mesiac pred | |
| AGENTS.md | 1 mesiac pred | |
| LICENSE.md | 1 mesiac pred | |
| README.md | 1 mesiac pred | |
| config.json.example | 1 mesiac pred | |
| jsconfig.json | 1 mesiac pred | |
| package.json | 1 mesiac pred | |
| pnpm-lock.yaml | 1 mesiac pred | |
| pnpm-workspace.yaml | 1 mesiac pred | |
| vite.config.js | 1 mesiac pred |
A modern SvelteKit application with Svelte 5 runes, Tailwind CSS, and Flowbite components.
Install dependencies:
pnpm install
Copy the example configuration to create your local config.json:
cp config.json.example config.json
This file contains settings for database and server configuration. See Configuration below for available options.
Start the dev server on http://localhost:3000:
npm run dev
# Auto-open in browser
npm run dev -- --open
Hot module reload enabled by default.
Create a production build:
npm run build
Preview the production build locally:
npm run preview
Production output goes to /build/ (configured for Node.js via @sveltejs/adapter-node).
src/routes/ — SvelteKit filesystem routessrc/lib/ — Reusable components and utilities (access via $lib alias)src/app.html — HTML shell (dark mode enabled via class="dark")@tailwindcss/vite + Forms/Typography plugins@sveltejs/adapter-node)All .svelte files use runes mode by default. Use:
$state() for reactive variables$derived for computed values$effect() for side effects{#snippet} for component snippets (e.g., icon slots)See Svelte 5 runes documentation.
app.html (remove class="dark" from <html> to disable)<style> blocks in .svelte filesThe project uses Paraglide JS for i18n with:
/en/ or /es/)getLocale(), setLocale(), and deLocalizeUrl() from $lib/paraglide/runtime.js$lib/paraglide/messages.jsAll routes are automatically localized. No manual language handling needed.
The config.json file (copied from config.json.example) controls server and database settings:
{
"database": {
"type": "sqlite3",
"sqlite3": {
"fileMustExist": false,
"filename": "app.db",
"readonly": false,
"timeout": 5000,
"performance": {
"foreignKeys": true,
"journalMode": "wal",
"synchronous": 1,
"tempStore": "memory"
}
}
}
}
database.type — Database backend (currently sqlite3)database.sqlite3.filename — Path to the SQLite database filedatabase.sqlite3.timeout — Query timeout in millisecondsdatabase.sqlite3.performance — Performance tuning options (WAL mode, foreign keys, etc.)