|
|
@@ -10,6 +10,16 @@ Install dependencies:
|
|
|
pnpm install
|
|
|
```
|
|
|
|
|
|
+### Configuration
|
|
|
+
|
|
|
+Copy the example configuration to create your local `config.json`:
|
|
|
+
|
|
|
+```sh
|
|
|
+cp config.json.example config.json
|
|
|
+```
|
|
|
+
|
|
|
+This file contains settings for database and server configuration. See [Configuration](#configuration-reference) below for available options.
|
|
|
+
|
|
|
## Development
|
|
|
|
|
|
Start the dev server on http://localhost:3000:
|
|
|
@@ -81,6 +91,37 @@ The project uses **Paraglide JS** for i18n with:
|
|
|
|
|
|
All routes are automatically localized. No manual language handling needed.
|
|
|
|
|
|
+## Configuration Reference
|
|
|
+
|
|
|
+The `config.json` file (copied from `config.json.example`) controls server and database settings:
|
|
|
+
|
|
|
+### Database Configuration
|
|
|
+
|
|
|
+```json
|
|
|
+{
|
|
|
+ "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 file
|
|
|
+- **`database.sqlite3.timeout`** — Query timeout in milliseconds
|
|
|
+- **`database.sqlite3.performance`** — Performance tuning options (WAL mode, foreign keys, etc.)
|
|
|
+
|
|
|
## Links
|
|
|
|
|
|
- [SvelteKit Documentation](https://svelte.dev/docs/kit)
|