Dasko f29e76612e Servis forma, animacije, hover efekti i pojačane senke
Servis:
- Nova polja: ostecenja, pin_uredjaja, pribor (migracija 051)
- Default garancija iz podešavanja, svič "Bez garancije" u formi
- Podešavanja → Servis: konfigurabilan rok garancije (migracija 052)
- Default datum prijema = danas; datum_prijema se eksplicitno upisuje
- Sidebar link za Servis podešavanja

PDV/Nivelacije:
- Default raspon datuma = početak/kraj tekućeg meseca (KIR, KPR, Nivelacije)
- Dodata class="tabela" na tabele bez klase (KIR, KPR, Obračun, Nivelacije)

Animacije (Moj profil → Tema):
- Korisnik bira vrstu animacije: bez, fadeInUp, fadeIn, scaleIn, slideLeft
- Čuva se po korisniku u korisnici.lokalna_animacija (migracija 053)
- CSS [data-animacija] radi na body (globalno) i na preview wrapperima (izolovano)
- Preview animacije izolovan: data-animacija na #anim-preview-wrap, ne na body
- Mobilne kartice se animiraju kad korisnik odabere stil (podrazumevano ne)
- Animacija primenjena direktno na .tabela tbody tr (bez potrebe za .animiraj)

Hover efekti (Moj profil → Tema):
- Opcije: podrazumevano, bez, podizanje, svetlost, zoom, boja
- Čuva se po korisniku u korisnici.lokalni_hover (migracija 054)
- CSS [data-hover] radi izolovano; preview menja samo #hover-preview-wrap
- Pojačane senke u oba teme (--senka i nova --senka-hover promenljiva)
- Transition dodat za transform i background na karticama

Grafikon (Izveštaji): toggle zamenjen globalnim .toggl/.toggl-klizac svičom
2026-06-18 02:21:06 +02:00

NTech

🇷🇸 Srpska verzija

Go Version License

image

A business application for computer repair shop management, parts inventory tracking, and sales. Built with Go, it runs in the browser and requires no internet connection or external services.

⚠️ The project is under active development. It is not ready for production use.


About the Project

NTech is an internal application built for a specific user — a computer repair shop that, in addition to repairs, manages a parts inventory, sales of components and pre-built configurations, as well as client and supplier records.

The goal is simple: everything the repair shop needs to track is located in one place, without relying on Excel spreadsheets or paper records.


Features

Implemented

  • Initial setup on first run (setup wizard)
  • Database migration system
  • User interface — sidebar navigation, theme system (dark/light), dashboard with statistics
  • User login — server-side sessions, account locking
  • Two-factor authentication (TOTP) — activation with a QR code; secret encrypted at rest (AES-256-GCM, key kept outside the database)
  • Backup (one-time) codes for 2FA — generated on activation, stored as bcrypt hashes; a fallback to TOTP at login
  • Brute-force protection — IP locking after 5 failed attempts within 15 minutes
  • CSRF protection — double-submit cookie pattern, automatic token injection into all forms
  • Security HTTP headers (CSP, X-Frame-Options, Referrer-Policy, nosniff...)
  • Login attempt logging — history by user, IP, reason, date
  • Users and roles — admin panel, user management
  • Inventory — items, categories, filtering, critical stock levels
  • Service orders — intake, status bar, costs, receipt
  • Sales orders — items, calculation, receipt with company and client details
  • Procurement — records of purchases from suppliers
  • Sales price calculation on procurement — markup (global, per category, per item), landed costs (customs, shipping...) allocated across items, two-way markup↔price computation; respects VAT-payer status
  • Price revaluation (nivelacija) — sales price changes with an audit trail (old→new, reason, source, user)
  • Company profile and modules — features toggle based on company type and VAT-payer status
  • VAT records (KIR/KPR) — books of issued and received invoices, auto-filled from sales and procurement
  • VAT calculation per period + mapping to the PP-PDV form; imports (customs declaration) tracked in fields 006/106
  • VAT rate code list
  • Clients and suppliers — contact database
  • Reminders — records with deadlines
  • Reports — revenue overview, inventory status
  • Settings — company name, address, Tax ID (PIB), logo; theme toggle
  • Background images — login page and app, with blur, transparency and glass effect
  • Personal theme and background — each user can set their own theme and background image
  • Permission matrix (RBAC) — admin panel for permissions by role; enforced at the route level (both mutations and views) and in handlers
  • Flash messages — one-time feedback after an action
  • Automatic SQLite backup — with configurable number of retained copies; restore from a copy (safe, with no downtime)
  • Charts — monthly revenue on reports (Chart.js)
  • Structured logging — log/slog (JSON in production, text in development); separate auth log in fail2ban format
  • Automated tests — unit and integration over a SQLite database (crypto, RBAC, login flows, form validators, reports)

Planned

  • Fiscalization (ESIR/PFR) — specification in Project.md
  • KPO book and double-entry bookkeeping (optional, later phase)
  • PostgreSQL support (for multi-user environments)
  • WebAuthn / Passkey login (database schema is already prepared)
  • Notifications (email / WhatsApp) — deferred to a later phase
  • Barcode scanning via camera — deferred to a later phase

Technologies

Technology Role
Go backend language
chi HTTP router
html/template server-side templates
Alpine.js client-side UI logic
SQLite + modernc.org/sqlite main database (pure Go, no CGO)
PostgreSQL + pgx/v5 optional production database

Running the Application

Requirements

  • Go 1.24 or newer
  • Git

Steps

# 1. Clone the repository
git clone <repository-url>
cd GoNtech

# 2. Copy the configuration file
cp ntech.env.example ntech.env
# Open ntech.env and set the values (see the table below)

# 3. Load environment variables and run in the development environment
export $(grep -v '^#' ntech.env | xargs)
go run ./cmd/ntech
S
Description
Servisni informacioni sistem za upravljanje servisom, magacinom i prodajom. Go + SQLite, jedan binarni fajl.
https://demo.vm-net.in.rs
Readme 4.4 MiB
Languages
HTML 47.6%
Go 46.1%
CSS 3.7%
JavaScript 2%
Shell 0.6%