David Beccue 82bb456103 Run dev on host Node 16 and add deploy patch script
Switch make install/run/build/db-* off docker compose onto the host's
Node (via nvm + .nvmrc). better-sqlite3 7.6.2 doesn't build against
Node 20, and the Dockerfile was still pinned to node:20 while the
rest of the project was downgraded to Node 16 in the Win7 bundle
commit; host execution avoids that mismatch.

Also adds scripts/make-patch.sh (make patch) to produce a small
build-only update zip for an already-installed Win7 target, ignores
dist/, and points start.bat at the installed Chrome PWA shortcut
instead of opening a normal browser tab.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 20:34:41 +05:00
2026-05-18 09:38:20 +05:00

AvtoAmbor

Simple auto-parts inventory for a single shop. SvelteKit + SQLite. UI is bilingual (English / Тоҷикӣ).

Prerequisites

  • Docker + Docker Compose

Everything else (Node, npm, native build tools for better-sqlite3) runs inside the container.

Quickstart

make install     # install dependencies inside the container
make db-init     # create data/avtoambor.db with schema + seed
make run         # dev server at http://localhost:3000

make help lists every target.

Production

Build with make build, copy the build/ directory plus node_modules and data/avtoambor.db to the Windows host, then run:

node build/index.js

The server listens on port 3000 by default. Open http://localhost:3000 in the browser on that machine.

Data

The SQLite database lives at data/avtoambor.db. The data/ directory is gitignored and bind-mounted into the container, so the DB file persists on the host.

  • make db-init — create the DB if it doesn't exist (does nothing otherwise).
  • make db-reset — delete and recreate the DB (asks for confirmation).
Description
Simple inventory control system for auto shop
Readme 52 MiB
Languages
Svelte 41.9%
JavaScript 35.7%
HTML 12.3%
Shell 5.4%
Batchfile 2.3%
Other 2.4%