Ovelta ERP

The manual of version 1.0.0. It explains how to install the product on your own server, what every module does, which role sees what, how the REST API answers and what to do when something does not work.

Version 1.0.0 Go and MySQL Linux, macOS, Windows Nine modules REST API v1

1. Getting started

Ovelta ERP is a business ERP that you run yourself. Accounting, human resources and payroll, CRM, projects, inventory and the point of sale live in one application on top of one MySQL database. There is no monthly fee, no seat count and no service outside your own server that the product talks to.

One binary

The interface, the templates and the stylesheet sit inside the program. There is nothing else to deploy.

One database

Everything is stored in MySQL, so you can back it up, copy it or read it with the tools you already know.

One install

The installer prepares the database, the tables and the first administrator account for you.

Your data

Nothing leaves your server. The product does not call home and there is no account to register with.

2. Requirements

ItemVersionNote
Operating systemLinux, macOS or WindowsAny 64 bit machine of the last ten years is fast enough.
DatabaseMySQL 5.6 or newer, or a compatible MariaDBThe installer creates the database and the user.
Memory1 GB or more2 GB is comfortable for a company with a few hundred records a day.
Disk2 GBThe program itself is a few megabytes, the rest is your data and the logs.
Go toolchain1.22 or newerOnly needed when you want to build the server from the source. The package ships a server that is already built.

The product runs behind any web server that can pass requests to it, and it speaks plain HTTP, so you can put it behind Nginx, Apache, Caddy or a load balancer.

3. Installation

On Linux and macOS

  1. Copy the package to the server and unpack it.
  2. Make the installer runnable and start it:
    chmod +x install.sh
    ./install.sh --db-user ovelta --db-password "a password of your choice" --admin-email you@example.com
  3. The installer creates the database, the user and the configuration file, then places the server in the folder it was started from.
  4. Start the server and open the address in your browser:
    ./ovelta-erp

The installer prints the address and the administrator account when it is done. When you leave the password empty it generates one and prints it, so write it down.

Useful options

OptionWhat it does
--db-host, --db-portWhere the database listens. The default is 127.0.0.1 on port 3306.
--db-user, --db-password, --db-nameThe account and the database of the installation.
--app-portThe port of the web interface. The default is 8080.
--admin-email, --admin-passwordThe administrator account that is created.
--urlThe public address. It is used in the metadata of the product page and in the links of the e-mail templates.
--no-demoInstall without the prepared example company.
--prebuiltAlways use the server that ships with the package, even when Go is installed.
--startStart the server when the installation is done.

On Windows

Open an elevated PowerShell window in the unpacked package and run:

.\install.ps1 -DbUser ovelta -DbPassword "a password of your choice" -AdminEmail you@example.com -Start

Running it as a service

On Linux the usual way is a systemd unit. Point it at the folder where the installer placed the server:

[Unit]
Description=Ovelta ERP
After=network.target mysql.service

[Service]
User=www-data
WorkingDirectory=/opt/ovelta
ExecStart=/opt/ovelta/ovelta-erp
Restart=always
RestartSec=5
Environment=APP_PORT=8080

[Install]
WantedBy=multi-user.target

Run systemctl enable ovelta and systemctl start ovelta. The unit reads the configuration file next to the server, so the settings stay in one place.

4. The first sign in

Open the address of the installation, sign in with the administrator account and change the password under Settings, Users straight away. The interface then shows the dashboard with the figures of your company.

Every screen follows the same pattern. A list shows the records with a search field, filters and an export button. The button on the right opens the form of one record. The form saves with the button at the bottom, and the sidebar on the left opens every module.

5. The demo company

The installer loads a complete example company unless you ask for a clean installation with --no-demo. The demo carries a chart of accounts, four departments, six employees, a payroll run, attendance and leave records, eight products with stock in two warehouses, four customers, two suppliers, invoices, expenses, till sales, a project with tasks and timesheets, leads, deals, a contract, a job posting, candidates and a training plan.

The administrator of the demo is admin@ovelta.local with the password admin1234. Change it before you use the installation for real work.

A clean installation still holds the chart of accounts, the tax rates, the expense categories, the leave types, the shifts, the email templates and the settings. Only the example records are left out, and exactly one administrator account is created.

6. Dashboard

The dashboard opens with the figures of the current month: revenue, expenses, cash on hand and the outstanding invoices, followed by the headcount, the open tasks, the value of the stock and the open leads. The chart below draws the income and the expenses of the last twelve months straight from the general ledger.

The dashboard of Ovelta ERP with the revenue, expenses, cash and receivable figures and the monthly chart
The dashboard of the demo company.

7. Accounting

Every posting writes a balanced journal entry, so the reports are always a calculation and never a hand typed number.

Invoices

An invoice carries lines with a product, a description, a quantity, a price and a tax rate. A new invoice starts as a draft. Posting it writes the entry, moves the amount to the receivable and shows the invoice in the ledger. Recording a payment reduces the balance and settles the invoice.

The invoice list with the number, customer, date, total and status of every invoice
The invoice list of the demo company.

Estimates, expenses and payments

Estimates are quotes that can be turned into an invoice with one click. Expenses carry a category and a payment method and post to the expense account. Payments and receipts record what came in and what went out and reduce the open invoices.

Journals, taxes and budgets

The chart of accounts holds the accounts, their type and their number. Tax rates carry a percentage, expense categories group the spending and budgets compare a plan with the real figures of a period.

The reports

The trial balance lists every account with its debits and credits and the difference between them. The balance sheet shows what the company owns and owes, and the profit and loss statement shows the result of the period.

The trial balance with the accounts, the debit side, the credit side and the totals
The trial balance of the demo company.
The balance sheet with the assets, the liabilities and the equity
The balance sheet.
The profit and loss statement with the income and the expenses of the period
The profit and loss statement.

8. Human resources

The people side of the business, from the first day of a job to the appraisal.

Employees and departments

An employee carries a code, a name, an address, a department, a designation, an employment type, a salary and a status. The department list holds the organisational structure and the manager of every unit.

The employee list with the code, the name, the department, the designation and the salary
The employee list.

Attendance and leave

Shifts describe the working day with its start, its end, the break and the grace minutes. Attendance records the check in and the check out of every employee on every day. Leave requests go through the workflow and reduce the allowance of the employee.

Payroll and payslips

A payroll run gathers the salary of every active employee, adds the overtime and the deductions and writes the payslips. Marking the run as paid posts the entry: the salary expense goes up and the payable to the employees goes up with it.

The payroll screen with the employees, their gross salary, the deductions and the net amount
The payroll of the demo company.

Recruitment and performance

Job postings open a position, candidates arrive with their application and move through the stages. Goals, appraisals and trainings follow the staff. Assets, documents, policies, announcements, events, complaints, warnings, promotions, transfers, resignations and terminations keep the history of the company complete.

The job postings list with the positions and their status
The job postings of the demo company.
The leave requests list with the employee, the type and the status of every request
The leave requests.

9. CRM

Leads come in with a source, move through the stages of the pipeline and become deals. A deal can become a contract, and a converted lead becomes a customer you can invoice.

The lead list with the name, the company, the source and the status of every lead
The lead list.
The pipeline board with the stages and the deals that sit in them
The pipeline board.

The form builder lets you add your own fields to the leads and the deals. The activity notes keep the history of a contact, and the calendar shows what happens when.

10. Projects

A project carries a code, a name, a client, a budget, a start and a due date. Its work lives in tasks and milestones, the hours live in the timesheets and the problems live in the issues.

The project board with the tasks in the columns of the workflow
The project board.
The timesheet list with the employee, the project, the date and the hours
The timesheets.

11. Inventory

Products and services carry a code, a category, a price, a cost price and a tax rate. Warehouses hold the stock, and every movement writes a row with the quantity, the reason and the user who made it.

The product list with the code, the name, the category, the price and the stock
The product catalogue.
The stock levels of every product in every warehouse
The stock levels.

Every table exports to CSV, and the stock list can be imported again from a CSV file with the same columns.

12. Point of sale

The till searches the catalogue by name, SKU or barcode. Clicking a product adds it to the basket, the quantity can be changed, and the total follows. Choose the warehouse, the customer and the payment method, enter the money you received and the change is calculated for you.

The point of sale screen with the product grid and the basket
The till.

A completed sale reduces the stock of the warehouse, grows the cash account, writes the sales entry and shows the receipt.

The list of the sales with the number, the date, the total and the payment method
The sales of the demo company.

Purchases record what you buy from a supplier, and the reports compare the purchases with the sales of the day and the month.

The point of sale report with the sales, the purchases and the comparison
The report of the till.

13. Reports

Six reports cover the work of the company: sales, purchases, stock, payroll, employees and CRM. Every table of the product can also be exported to CSV from its own list.

The report overview with the six reports
The report overview.

14. Settings and access

The company profile holds the name, the address, the currency and the fiscal year. The users are the people who sign in, and every user carries a role.

The user list with the name, the email, the role and the status of every account
The user list.

Roles and permissions

Six roles ship with the product: administrator, manager, accountant, human resources, sales and employee. The matrix decides what every role may see and change, and you can edit it.

The role matrix with the permissions of every role
The permission matrix.

Modules, e-mail templates and the activity log

The module switches turn the parts of the product off that your company does not use. The e-mail templates hold the text of the messages the product sends. The activity log writes every change with the user, the time and the detail.

The activity log with the action, the record and the user of every write
The activity log.
The company profile with the name, the address and the currency
The company profile.
The module switches of the installation
The module switches.

API tokens

A token lets a script of yours use the REST API. Create it under Settings, API tokens, keep the secret it shows once, and send it with every call in the Authorization header.

The API token list with the name and the last use of every token
The API tokens.

15. The REST API

Version 1 of the API lives under /api/v1 and answers JSON. It is meant for the scripts that sit next to your ERP, not for the interface.

Sign in and read

curl -X POST https://erp.example.com/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"admin@example.com","password":"your password"}'

The answer carries a token and the profile of the user:

{"token":"ov_9f2c...","user":{"id":1,"name":"Administrator","email":"admin@example.com","role":"admin"}}

Send the token with every later call:

curl https://erp.example.com/api/v1/hrm/employees \
  -H "Authorization: Bearer ov_9f2c..."

The routes

RouteWhat it does
POST /api/v1/auth/loginExchanges an address and a password for a token.
GET /api/v1/meThe profile and the permissions of the caller.
GET /api/v1/dashboardThe figures of the dashboard.
GET /api/v1/resourcesThe catalogue of the collections with their module and their permission.
GET /api/v1/{module}/{collection}The records, with limit, offset and a search.
POST /api/v1/{module}/{collection}Creates a record and answers with it.
GET /api/v1/{module}/{collection}/{id}One record.
PUT /api/v1/{module}/{collection}/{id}Changes the fields that are sent.
DELETE /api/v1/{module}/{collection}/{id}Removes a record.
POST /api/v1/pos/saleRings up a sale at the till.
GET /api/v1/reports/salesThe sales report with the totals.

Example: create a department

curl -X POST https://erp.example.com/api/v1/hrm/departments \
  -H "Authorization: Bearer ov_9f2c..." \
  -H "Content-Type: application/json" \
  -d '{"name":"Support","code":"SUP","description":"Customer support"}'

Errors

Every error carries a code and a message:

{"error":{"code":"FORBIDDEN","message":"Your role cannot create records here."}}
CodeWhen it happens
UNAUTHENTICATEDNo token, or a token that does not exist or has expired.
FORBIDDENThe role of the caller may not do this.
NOT_FOUNDThe record does not exist.
INVALID_BODYThe JSON body could not be read, or a field holds the wrong kind of value.
CREATE_FAILED, UPDATE_FAILEDThe database refused the change, for example a code that is already taken.

16. Configuration

The server reads a file called .env that sits next to the program. An environment variable always wins over the value in the file, so a service manager can override anything without touching the file. The file .env.example in the package holds every setting with its default.

VariableDefaultWhat it does
APP_NAMEOvelta ERPThe name in the title bar and in the e-mail templates.
APP_PORT8080The port of the web interface.
APP_URLhttp://localhost:8080The public address, used in the metadata and in the links.
DB_HOST, DB_PORT127.0.0.1, 3306Where the database listens.
DB_USER, DB_PASSWORD, DB_NAMEovelta, empty, ovelta_erpThe account and the database.
ADMIN_EMAIL, ADMIN_PASSWORDadmin@ovelta.local, emptyThe administrator account. The server creates it and keeps the password in step with the file.
SEED_DEMOfalseLoads the prepared example company on an empty database.
COOKIE_SECUREtrueSet to false only while you are testing over plain HTTP.
SESSION_TTL_HOURS336How long a session stays valid.
FRAME_OPTIONS, FRAME_ANCESTORSSAMEORIGIN, selfThe frame policy, for the preview of the product page.
COMPANY_NAME, CURRENCY, CURRENCY_SYMBOLYour Company, USD, $The company of the installation and its money.
MAIL_HOST, MAIL_PORT, MAIL_USER, MAIL_PASS, MAIL_FROM, MAIL_TLSempty, 587The SMTP server for the e-mail templates.
LICENCE_MODEoffThe licence check. It is off by default and the product works without it.
The ADMIN_PASSWORD value stays in the file. Keep the file readable by the user that runs the server only, and never put it in a public folder.

17. Behind a web server

Put the server behind Nginx or Apache and let the web server handle HTTPS. A small Nginx block that works:

server {
    listen 443 ssl;
    server_name erp.example.com;
    ssl_certificate     /etc/letsencrypt/live/erp.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/erp.example.com/privkey.pem;

    client_max_body_size 20m;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host              $host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Set COOKIE_SECURE=true afterwards, so the session cookie only travels over HTTPS. The program serves its own stylesheet, its icons and its script from /static, so the web server must let that path through untouched.

18. Backup and restore

Everything lives in one MySQL database, so a backup is a dump of that database plus the configuration file.

mysqldump -u ovelta -p --single-transaction --routines ovelta_erp > ovelta-$(date +%F).sql
cp .env ovelta-$(date +%F).env

Restore it with:

mysql -u ovelta -p ovelta_erp < ovelta-2026-01-31.sql

Stop the server while you restore, otherwise a record can be written while the dump is loaded.

19. Troubleshooting

The server does not start

Start it in the foreground and read the message. The usual reason is the database: check the host, the port, the user, the password and the name in the .env file.

mysql -h 127.0.0.1 -u ovelta -p -e "SHOW DATABASES"

The page loads but shows an error

Look at the log of the server. With the file .env you can also write the messages to a file by setting LOG_FILE=/var/log/ovelta/erp.log.

The sign in is refused

The account has to be active and the password has to match. The administrator of the installation comes from ADMIN_EMAIL and ADMIN_PASSWORD; change the password there, restart the server and sign in again. The reset page at /reset sends the same message whether the address exists or not.

The port is already in use

ss -ltnp | grep 8080

Stop the process that holds the port or choose another port with --app-port.

The page loads without any styling

The web server in front of the product must not block or rewrite /static. Check that the file answers:

curl -I https://erp.example.com/static/css/app.css

The numbers look wrong

Check the trial balance first. If the debit and the credit side differ, a journal entry was edited by hand in the database. Every posting the product makes is balanced, so a difference points at a change outside the interface.