c99887bb6f060781a8494c5e556b0e3878ab78ed
Premeštanje artikla: - Padajući <details> meni zamenjen nativnim <dialog> modalom (showModal), koji ide u „top layer" pa je uvek iznad svega bez obzira na z-index/overflow. - Dodato zatamnjenje pozadine (::backdrop) i fade in/out animacije (@starting-style + transition-behavior: allow-discrete). - Klik van modala, × dugme i Escape zatvaraju; klik na kategoriju i dalje odmah premešta artikal. Tema i HTMX: - CSS modala premešten iz magacin.html (dodatni-css u headeru) u main.css, jer se header ne menja pri HTMX navigaciji (hx-select=#glavni-sadrzaj), pa je stil sada uvek prisutan. - Modal prati svetlu/tamnu temu preko CSS promenljivih; kad je aktivna pozadinska slika, glass-override u base.html ga čini providnim i zamućenim kao kartice. - Modal centriran (margin:auto, jer reset gazi UA podrazumevano) i pojačana senka. Slajder (input[type=range]): - Dodata zajednička klasa .klizac sa ručnim stilom za oba motora (::-webkit-slider-* i ::-moz-range-*), da svuda izgleda kao u Firefox-u. - Plava popunjenost pre glave: Firefox preko ::-moz-range-progress, Chromium preko gradijenta i CSS promenljive --popunjeno koju postavlja JS. - Svih 12 slajdera (profil_tema, podesavanja_izgled, podesavanja) prešlo sa inline accent-color stila na klasu .klizac.
NTech
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, backup codes
- 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
- Clients and suppliers — contact database
- Reminders — records with deadlines
- Reports — revenue overview, inventory status
- Settings — company name, address, Tax ID (PIB), logo; theme toggle
Planned
- 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.22 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
Description
Servisni informacioni sistem za upravljanje servisom, magacinom i prodajom. Go + SQLite, jedan binarni fajl.
https://demo.vm-net.in.rs
2.6 MiB
Languages
Go
49.3%
HTML
42.4%
Python
3.1%
CSS
2.6%
JavaScript
2%
Other
0.6%