Shelftara Documentation 1.0.0

Shelftara 1.0.0

Inventory, point of sale and online store in one platform

Shelftara is a multi-tenant business platform that you install on your own server. One installation serves many workspaces: each one gets its own catalogue, its own stock, its own documents and its own online shop. The server is a single Go binary, the database is MySQL, and the browser talks to a JSON API for the register and to ordinary HTML pages for everything else.

What Shelftara is

Shelftara started as a stock and register system and grew into a complete back office. The same code base runs the catalogue, the warehouses, the purchasing, the sales documents, the cash register, the storefront, the accounting, the reports and a set of vertical modules for rental, restaurant, bookings, assets and human resources.

Two layers live in the same binary. The platform layer is the operator's console: it creates the workspaces, sells the plans, activates the modules and keeps the billing records. The workspace layer is what a business signs in to use: the panel under /app, the register, and the public shop under /store. A workspace is a row in the database with a tenant_id, and every query of the workspace layer filters on it.

Language
Go, module shelftara, a single command at cmd/shelftara.
HTTP layer
Fiber v3 (github.com/gofiber/fiber/v3 v3.7.0).
Data access
GORM with the MySQL driver; the schema is created and kept up to date automatically at start.
Database
MySQL 8 or MariaDB 10.6 and newer, utf8mb4 throughout.
Tables
116 tables, declared in one list in internal/models/registry.go.
Front end
Server-rendered HTML with embedded templates and assets; no build step, no package manager.
Licence
Proprietary commercial licence, see the LICENSE file of the repository.

The module map

Every module below is implemented in the code of this release. The link opens the module page, which lists the permission, the routes and the way the module behaves. The permission code is the one the role editor stores and the one the server checks on every request.

Inventory and catalogue

Products, categories, brands, units, barcodes, batches and serial numbers.

products.view

Warehouses and stock

Quantities per warehouse, adjustments with a reason, transfers between sites.

stock.view

Purchasing

Purchases, suppliers, landed cost, supplier wallet and purchase returns.

purchases.view

Sales documents

Quotations, orders, invoices, credit notes, returns and customer records.

sales.view

Point of sale

Touch register, barcode scanner, split payments, parked carts and shifts.

pos.use

Online store

A branded storefront with a basket, a checkout, reviews and order tracking.

store.manage

Accounting

Chart of accounts, transactions, expenses, transfers and deposits.

accounting.view

Reports

Eight live reports over your own data, each one exportable as CSV.

reports.view

CRM

Pipelines, stages, leads, activities, messages and targets.

crm.manage

Rental

Rentable items, contracts, reservations, handovers and maintenance.

rental.manage

Restaurant

Floors, tables, menu, modifiers, kitchen display and billing.

restaurant.manage

Booking

Services, staff, schedules, reservations and reminders.

booking.manage

Assets

Fixed assets, depreciation entries and disposal.

asset.manage

Human resources

Employees, attendance, leave, recruitment and payroll.

hr.manage

Courier and shipment

Carriers, parcels, tracking events and the courier ledger.

courier.manage

Production

Bills of materials, production orders and batch tracking.

production.manage

Integrations

Connect a remote shop and pull its products into the catalogue.

settings.manage

Business assistant

Ask about the sales, the stock or the money that is owed.

dashboard.view

Audit log

Every important change, with the user, the address and the detail.

settings.manage

Users and roles

Accounts, custom roles and the 31 capabilities of the panel.

users.manage

Platform layer

Workspaces, plans, modules, billing and the platform settings.

super_admin

Quick start

This is the shortest path from an empty server to a running workspace. The full walkthrough, with the catalogue and the first order, is on the quick start page.

  1. Prepare the database

    Create an empty database and a user that can write to it.

    CREATE DATABASE shelftara CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
    CREATE USER 'shelftara'@'127.0.0.1' IDENTIFIED BY 'a-strong-password';
    GRANT ALL PRIVILEGES ON shelftara.* TO 'shelftara'@'127.0.0.1';
  2. Write the configuration

    Write a .env file next to the binary and set at least the database credentials and APP_SECRET. The server reads it from the working directory, from the directory of the executable, or from the file named by ENV_FILE. The full reference is on the configuration page.

    cat > .env <<'EOF'
    APP_ENV=production
    APP_DEBUG=false
    PORT=8080
    DOMAIN=inventory.example.com
    APP_SECRET=change-this-to-a-long-random-string
    
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_USER=shelftara
    DB_PASSWORD=a-strong-password
    DB_NAME=shelftara
    EOF
  3. Build the binary

    One command, one file. The binary embeds the templates and the assets, so the build output is all you need to copy to a server.

    go build -o bin/shelftara ./cmd/shelftara
  4. Start the server

    The schema is created automatically on the first start, the plans and the module catalogue are written, and the platform administrator is created if it does not exist yet.

    ./bin/shelftara
  5. Check that it answers

    The health endpoint returns the status of the application and the current time.

    curl -s http://127.0.0.1:8080/healthz
    {"status":"ok","app":"shelftara","time":"2026-12-06T09:41:12Z"}
  6. Sign in as the operator

    The default platform administrator is admin@shelftara.test with the password ShelftaraAdmin1. Change it, or set ADMIN_EMAIL and ADMIN_PASSWORD before the first start. On the panel under /platform you create your first workspace.

One command on a server

The repository ships install.sh. On Debian and Ubuntu it prepares the whole server — the account, the database, the binary, the configuration, the systemd unit and the nginx site — in one pass. See the installation page.

Working on a laptop

The repository also ships scripts/dev-up.sh. It starts a local MariaDB, creates the database and the user, builds the binary and launches the server. It is the fastest way to see the product without touching a production machine.

Documentation contents

The demo workspace

With SEED_DEMO=true in the .env file, the first start also fills a workspace called demo with a catalogue, stock, invoices, purchases, customers and a second user. It is the fastest way to evaluate the product, and it is what the end to end suite drives.

AccountAddressPasswordWhat it opens
Workspace ownerowner@demo.testShelftaraDemo123The demo workspace, a business called Northwind Supply Co.
Platform operatoradmin@shelftara.testShelftaraAdmin1The operator console under /platform.

Turn the seed off on a production server by setting SEED_DEMO=false and removing the demo user afterwards.

Support

Shelftara is an independent product. Questions about the installation, the configuration or a module go to the address in SUPPORT_EMAIL, which is shown on the marketing site of your own installation. Before you open a ticket, read the FAQ: the configuration and the security pages answer most of the questions that come up during a first installation.