LogicBit AutoHub — The Ultimate Auto Services Business Directory Platform (Next.js + NestJS + PostgreSQL)
by LBS Market in Next.js
- Next.js
- React
- TypeScript
Self-hosted stock & basic accounting for your business — purchases, 13% VAT invoices, payments, expenses & balance sheet, multi-company ready
status.sh, logs.sh, start.sh, stop.sh, backup.sh, restore.sh, update.sh, create-admin.sh, registration.sh)|
File / folder
|
What it is
|
|---|---|
Inventory-Account-Management.zip |
The application. Upload this to your server.
|
documentation/index.html |
This guide (also inside the application zip).
|
licensing/ |
Licence terms and third-party credits.
|
README.txt |
Quick start.
|
Inventory-Account-Management.zip:Inventory-Account-Management/
├── install.sh one-command installer
├── scripts/ helper scripts for daily use
│ ├── status.sh logs.sh start.sh stop.sh
│ ├── backup.sh restore.sh update.sh
│ ├── create-admin.sh reset a password, or add a company
│ └── registration.sh allow or block new company sign-up
├── docker-compose.yml starts the database, backend and website
├── .env.example every setting (install.sh turns it into .env)
├── nginx/ web server rules
├── backend/ the server application (Node.js, Express)
├── frontend/ the website (React)
└── documentation/ this guide
Created by the installer on your server:
├── .env your settings and secrets
├── backups/ backups (the newest 14 are kept)
└── logs/ install.log and backup.log
|
Item
|
What you need
|
|---|---|
|
Server
|
A Linux VPS or cloud server with root (sudo) SSH access. Shared / cPanel hosting will not work.
|
|
Operating system
|
Ubuntu 24.04 LTS (recommended), Ubuntu 22.04 or Debian 12
|
|
Memory and disk
|
2 GB memory recommended (1 GB at least), 10 GB free disk
|
|
Processor
|
A 64-bit processor. On Intel/AMD servers it must support AVX, which the MongoDB database needs. The installer checks this.
|
|
Domain
|
A domain whose DNS A record points to the server's IP address
|
Note: If your provider has a Firewall or Security group page, allow ports 22, 80 and 443.
@, value = your server's IP address. For www.yoursite.com too, add a second A record named www. To check, run this on your own computer (PowerShell or Terminal). It should show your server's IP address:ping yoursite.comInventory-Account-Management-v1.0.0.zip. Inside is another zip, Inventory-Account-Management.zip. That inner zip goes to the server. Do not unzip it on your computer.YOUR_SERVER_IP):cd "$HOME/Downloads/Inventory-Account-Management-v1.0.0"
scp Inventory-Account-Management.zip root@YOUR_SERVER_IP:/root/yes if asked, then the root password. Nothing shows while you type a password. That is normal. You can also upload with FileZilla or WinSCP (protocol SFTP).ssh root@YOUR_SERVER_IPapt-get update && apt-get install -y unzip
mkdir -p /var/www && cd /var/www
unzip /root/Inventory-Account-Management.zip
cd Inventory-Account-ManagementNote: If you log in as a normal user instead ofroot, putsudoin front of these commands and of the installer command.
bash install.sh yoursite.com you@email.com|
Question
|
What to type
|
|---|---|
|
Your company name
|
It is shown in the menu and on printed documents.
|
|
Admin email
|
Your login. Press Enter to use the email from the command.
|
|
Admin password
|
At least 8 characters, typed twice. Press Enter to have one made for you: it is shown once at the end, so write it down.
|
ufw) allows only ports for SSH, 80 and 443. The first run takes a few minutes. If the connection drops or something fails, fix it and run the same command again: it is safe to repeat and keeps your data and password.Note:ufwnote: if your server runs other services on other ports, add--no-firewall, or those ports will be closed.
https://yoursite.com/login and sign in.Note: Always use exactly the address the installer shows. Opening the site by the server's IP address, or by another domain name, shows the page but logging in fails.
|
Option
|
What it does
|
|---|---|
--dry-run |
Only checks the server and lists what would happen. Changes nothing.
|
--no-ssl |
Plain http, for testing or before the domain is ready. Passwords then travel unencrypted. Run the installer again without it to turn HTTPS on.
|
--www |
Also serve
www.yoursite.com (needs its A record). |
--company "Name" |
Company name, without being asked.
|
--admin-email a@b.com |
Login email, if different from the certificate email.
|
--external-db "URL" |
Use your own MongoDB (see Using your own database).
|
--no-firewall |
Leave the firewall as it is.
|
--no-backup |
No first backup and no daily backup.
|
--skip-dns-check |
Skip the domain check, for example behind a proxy.
|
bash install.sh 203.0.113.10 you@email.com. It runs over plain http..env file somewhere safe, and plan how to copy backups off the server (see Backup & restore).cd /var/www/Inventory-Account-Management|
Command
|
What it does
|
|---|---|
bash scripts/status.sh |
Is everything running? Also shows certificate expiry, last backup and free disk.
|
bash scripts/logs.sh |
Live logs (
logs.sh api, web or db for one part). Ctrl+C to leave. |
bash scripts/stop.sh |
Stop everything. Data is kept.
|
bash scripts/start.sh |
Start, or apply changes made in
.env. |
bash scripts/backup.sh |
Back up now.
|
bash scripts/restore.sh backups/<folder> |
Put a backup back.
|
bash scripts/create-admin.sh |
Reset a password, or add a company.
|
bash scripts/registration.sh off |
Block new company sign-up (
on, status). |
stop.sh).bash scripts/registration.sh offbash scripts/create-admin.sh/etc/cron.d/inventory-renew). HTTP is redirected to HTTPS.--no-ssl first: once the domain points at the server, run bash install.sh yoursite.com you@email.com again.--www every time you run the installer. If you add it later, the installer asks for a certificate that covers both names.sudo systemctl disable --now apache2 nginx).bash install.sh yoursite.com you@email.com --external-db "mongodb+srv://user:password@your-cluster/inventory_db"/inventory_db) in the address, and allow your server's IP address at your database provider.@ as %40). A ' character is not supported.mongodb+srv:// addresses the application looks up the database using the public DNS servers 8.8.8.8 and 1.1.1.1, so the server must be allowed to reach them.MONGO_URI in .env and run bash scripts/start.sh. Decide between the built-in and your own database at the first install; moving data between them is not covered here.bash scripts/start.sh.|
Setting
|
Meaning
|
|---|---|
DOMAIN, SITE_URL |
Your site's address. Change by running the installer again.
|
HTTP_PORT, HTTPS_PORT |
Ports of the website (80, 443).
|
CORS_ORIGINS |
The addresses allowed to log in, separated by commas. The installer sets it to your site address.
|
TRUST_PROXY |
Keep
1: the backend sits behind Nginx. |
COMPOSE_PROFILES |
localdb for the built-in database, empty for your own. |
MONGO_PASSWORD |
Password of the built-in database. Do not change it: the database keeps the password it was first created with.
|
MONGO_URI |
The database address the backend uses.
|
JWT_SECRET |
Signs logins. Changing it signs everyone out.
|
backups/ with the database and a copy of .env. The newest 14 are kept. The application stores no uploaded files, so this is everything.Note: A backup on the same server does not protect you if the server is lost. Copy the folder to your computer regularly. Run this on your own computer:scp -r root@YOUR_SERVER_IP:/var/www/Inventory-Account-Management/backups ./inventory-backupsIt contains your passwords (inenv.backup) and all business records, so keep it private.
bash scripts/restore.sh backups/20260101-023000yes to confirm. Making a fresh backup first is a good idea.backups folder, then run the restore command there. Log in with the accounts from the backup (not the one you created while installing). Keep the new server's .env.Inventory-Account-Management.zip and unzip it into a different folder: mkdir -p /var/www/new && cd /var/www/new
unzip /root/Inventory-Account-Management.zip
cd Inventory-Account-Management bash scripts/update.sh /var/www/Inventory-Account-ManagementNote: Do not runinstall.shin the new folder. It would make a new.envwith a new database password that does not match your existing database.
backend/ or frontend/ are replaced by an update.cd /var/www/Inventory-Account-Management
docker compose down -v
rm -f /etc/cron.d/inventory-backup /etc/cron.d/inventory-renew--no-ssl)..env and the backups private.apt-get update && apt-get upgrade.|
Problem
|
What to do
|
|---|---|
|
Page opens but login says it failed, although the password is right
|
You are using a different address from
SITE_URL (IP address, www, another domain). Use the installer's address, or run the installer again with the address you want. |
|
"Port 80 is already in use"
|
Another web server is running:
sudo systemctl stop apache2 nginx. |
|
"domain does not point to this server"
|
Fix the DNS A record, wait, run the installer again.
|
|
"certificate was not issued"
|
Open ports 80 and 443 in the provider's firewall too, check the domain, run again.
|
|
"processor does not support AVX"
|
Use a server with AVX, or use your own database (see Using your own database).
|
|
The build fails
|
Check internet access and free disk space (
df -h), then run the same command again. |
|
The database or backend does not start
|
bash scripts/logs.sh db or bash scripts/logs.sh api. If you ran install.sh from a second folder, the database password in that folder's .env does not match; use your original folder. |
|
"Too many attempts"
|
Wait 15 minutes.
|
|
"permission denied" from Docker
|
Put
sudo in front of the command. |
logs/install.log.|
Part
|
Technology
|
Inside Docker
|
|---|---|---|
|
Website
|
React 19, React Router 7, Axios, built with Vite 8; served by Nginx 1.27
|
web, ports 80/443 |
|
Backend
|
Node.js 22, Express 5, Mongoose 8, JWT, bcryptjs
|
api, port 5000 (not published) |
|
Database
|
MongoDB 7
|
db (not published) |
/api, and Nginx forwards that to the backend. After changing source files on the server run bash scripts/start.sh --rebuild.inventory_db. Collections are created as records are added; the main ones are companies, admins, products, clients (customers and suppliers), purchases, purchase returns, invoices, payments, receipts, expenses, stock movements, the balance sheet records, and the product attributes (categories, brands, grades, sizes, HS codes).licensing folder: LICENSE.txt and THIRD-PARTY-NOTICES.txt. MongoDB is downloaded to your server by Docker and has its own licence, the Server Side Public License (SSPL).Item support includes: answering questions about how to use the item, help with reported bugs and issues, and help with included third-party assets.
Item support does not include: customization and installation services, or support for third-party plugins.
by LBS Market in Next.js
by LBS Market in AI Tools
by LBS Market in Next.js
by LBS Market in Next.js
LogicBit Inventory / Account Management System — Complete Business Stock & Accounting Platform
Pay via eSewa, Khalti, Fonepay or bank transfer. Send the purchase request and we will email you the payment details and your license within a few hours.