Files
avtoambor/package.json
David Beccue 05be5b03aa Initial scaffold for AvtoAmbor parts inventory
SvelteKit 2 + Svelte 4 + adapter-node, SQLite via better-sqlite3 (WAL,
foreign keys on). Bilingual EN/Тоҷикӣ throughout, locale persisted in
localStorage.

Pages: dashboard (totals, low stock, recent movements), parts list with
search and sort, part create/edit, record movement (in/out/adjust with
smart unit-price and adjust-quantity prefill), suppliers list with
inline add.

Schema: categories, suppliers, parts (with _en/_tg name+description
columns, dirams for money), stock_movements with check on movement_type.
On-hand updates are done in JS inside a transaction with the movement
insert.

Dockerized dev: docker compose, named project, bind-mounted data/ for
DB persistence. Seed contains 6 categories, 4 suppliers, 31 realistic
parts (Lada / Nexia / Opel / Toyota bias).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 07:05:24 +05:00

23 lines
500 B
JSON

{
"name": "avtoambor",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite dev --host 0.0.0.0 --port 5173",
"build": "vite build",
"preview": "node build/index.js",
"start": "node build/index.js",
"db:init": "node scripts/init-db.js"
},
"devDependencies": {
"@sveltejs/adapter-node": "^5.2.0",
"@sveltejs/kit": "^2.5.0",
"svelte": "^4.2.0",
"vite": "^5.2.0"
},
"dependencies": {
"better-sqlite3": "^11.3.0"
}
}