LogicBit Inventory / Account Management System — Complete Business Stock & Accounting Platform
by LBS Market in MongoDB
- React 19
- React Router 7
- Vite 8
Fast newspaper theme with ad manager, breaking ticker and Nepali date support
LogicBit News Platform — a complete news website system built with Next.js 14 (websites + admin panel), NestJS 10 (API) and PostgreSQL. One installation runs as many news sites as you like, each with its own domain, design, content, ads and users, all managed from one admin panel.
Thank you for purchasing the LogicBit News Platform — a complete news website system built with Next.js 14 (websites + admin panel), NestJS 10 (API) and PostgreSQL. One installation runs as many news sites as you like, each with its own domain, design, content, ads and users, all managed from one admin panel.
| File / folder | What it is |
|---|---|
LogicBit-News-Platform.zip |
The application source code. Upload this to your server. |
documentation/index.html |
This documentation (also inside the source zip). |
licensing/ |
Licence terms and third-party credits. |
README.txt |
Quick start. |
Inside LogicBit-News-Platform.zip:
logicbit-news-platform/
├── apps/api/ NestJS API (port 4000) — database, admin and public API
├── apps/web/ Next.js (port 3000) — public websites + /admin panel + /install wizard
├── install.sh one-command server installer
├── add-domain.sh connect one more domain (multi-site)
├── backup.sh database + photos backup
├── wordpress-plugin/ small plugin for moving a WordPress site (optional)
├── documentation/ this file
└── README.md technical notes (Nepali)
| Item | Minimum | Recommended |
|---|---|---|
| Server | VPS / cloud server with root (sudo) SSH access | DigitalOcean, Linode/Akamai, Vultr, Hetzner, AWS Lightsail… |
| Operating system | Ubuntu 22.04 / 24.04 or Debian 12 | Ubuntu 24.04 LTS |
| Memory / CPU / disk | 2 GB RAM, 1 vCPU, 20 GB | 4 GB RAM, 2 vCPU for busy or several sites |
| Domain | A domain whose DNS A record (and www) points to the server's IP address |
|
The installer sets up everything else automatically: Node.js 20, PostgreSQL, Nginx, PM2 and a free Let's Encrypt HTTPS certificate.
yoursite.com and www.yoursite.com → your server's IP. Wait until ping yoursite.com shows that IP (usually minutes, sometimes a few hours).LogicBit-News-Platform.zip to the server (e.g. with an SFTP app such as FileZilla / WinSCP, or scp):
scp LogicBit-News-Platform.zip root@YOUR_SERVER_IP:/root/
ssh root@YOUR_SERVER_IP
sudo apt-get update && sudo apt-get install -y unzip
sudo mkdir -p /var/www && cd /var/www
sudo unzip /root/LogicBit-News-Platform.zip
cd logicbit-news-platform
sudo bash install.sh yoursite.com you@email.com
It installs the software, creates an empty database with a random password, writes apps/api/.env, builds and starts both apps with PM2 (they start again after a reboot), configures Nginx and adds HTTPS. The database password is saved in /root/logicbit-news-credentials.txt.
https://yoursite.com/install in your browser and finish with the web installer (next section).| Option | Use it when |
|---|---|
--no-ssl |
DNS does not point to the server yet. Run the same command again later without it to add HTTPS. |
--no-www |
You don't want www.yoursite.com. |
--dry-run |
Only show what would be done. |
Running install.sh again is safe — the existing database and .env are kept.
https://yoursite.com/install.https://yoursite.com/admin./install right after the server installer — until then anyone who opens that page could install the site. After the first install the page is locked.yoursite.com/?lb_ad_spots=1 to see every ad place.Open https://yoursite.com/admin. With several sites, switch between them with the site switcher at the top.
| Menu | What you do there |
|---|---|
| Dashboard | Quick numbers, latest news, shortcuts. |
| Posts / Add New Post | Write and manage news; bulk actions. |
| Categories / Tags | Category colours (badge background + text), tag images (used in the "trending" section). |
| Team / Byline | Reporters and writers with photo, designation and social links. Each has a profile page. |
| Media | Uploaded photos. |
| Pages | About, contact, privacy policy… |
| Ads Manager | All ads and ad places — see Ads manager. |
| Design & Templates | Templates, colours, fonts, font sizes and layout parts with live preview. |
| Homepage Builder | Automatic or custom homepage, main news options. |
| Menus | Main menu, top bar menu, footer menu. |
| Site Settings | General, top bar, header, menu bar, breaking ticker, trending bar, category pages, single post, footer, social links, misc, custom code. |
| Import / Export | Copy design + settings between sites; import from WordPress. |
| All Sites / Users | Super admin only: create sites, connect domains, manage users. |
No photo? The site uses the first photo inside the story, then your "No image" photo, then your logo — never an empty box.
Design & Templates has five tabs: Templates, Colours, Fonts, Font sizes and Layout. Changes show in the live preview (desktop / tablet / mobile); click Save design to publish — the site updates instantly.
| Family | Look |
|---|---|
| Classic | Logo + header ad, solid menu, big centred headlines. |
| Portal | Live ticker, trending bar, lead story with side cards. |
| Broadsheet | Newspaper look with a serif masthead and three columns. |
| Himalayan | Bold masthead, feature story and live-updates wire. |
| Magazine | Compact header, pill menu, image overlay grid. |
| Khabar | Clean white portal: "special stories" with huge centred titles, wide photos and summaries. |
Each family comes in 10 palettes: Crimson, Royal Blue, Emerald, Saffron, Maroon, Navy, Teal, Purple, Forest and Midnight (dark mode).
Choose any of these for any template in Layout → Single post: Sidebar, Centered, Wide hero, Khabar (huge centred title, full-width photo, sticky latest-news sidebar, "Recommended" and "Related news") and Focus (narrow reading column, no sidebar).
Header (4 styles), menu (5), main news / hero (6), cards (5), section titles (6) and footer (4) can each be changed independently. Font sizes lets you set the size of the menu, headlines, card titles, article text and more in pixels, with a separate scale for phones.
36 places: header (top, beside logo, below menu), homepage (top, beside main story, below main news, between sections 1–10, sidebar, bottom), news page (top, below title, below image, in-content, bottom, sidebar, after related), category pages, pages, footer, popup and sticky bottom bar.
See ad spots on my site: open yoursite.com/?lb_ad_spots=1 (logged in) to see every place as a dashed box with "+ Add ad here" / "✎ Edit ad". ?lb_ad_spots=0 turns it off. Rotate (Ad places tab) shows one random ad per page view in that place.
| Tab | Main options |
|---|---|
| General | Site name, tagline, language, logo, favicon, "No image" photo, domains. |
| Top bar | Date (Nepali / English / both), social icons, colours. |
| Header / Menu bar | Header ad, sticky menu, search, home icon, highlight button (e.g. "Latest news"), colours. |
| Breaking news ticker / Trending bar | On/off, label, source (posts marked Breaking, a category or latest posts), how many, auto-hide when there is no breaking news, colours. |
| Category pages / Single post | Layout, related news, reading time, views, share buttons. |
| Footer / Social links | Footer logo, about text, chairman / publisher / editors, unlimited "More team members" rows ("Reporter: Name"), company, registration number, address, phone, email, copyright, links; Facebook, X, YouTube, Instagram, TikTok, WhatsApp, LinkedIn, Telegram. |
| Misc / Custom code | Date on cards (relative / Nepali / English), relative time word (अगाडि / अघि), scroll-to-top button; analytics and other custom code. |
cd /var/www/logicbit-news-platform
sudo bash add-domain.sh newsite.com you@email.com
newsite.com (or add it under an existing site's Domains).Each site has its own design, content, ads, menus and settings. One login reaches all the sites you have access to.
For sites using the LogicBit News WordPress theme (older and current versions):
wordpress-plugin/logicbit-headless-export.php to the WordPress site's wp-content/plugins/ folder and activate LogicBit Headless Export.Posts with all post options, categories with colours, tags with images, reporters, Customizer settings and ads are imported. Running it again updates instead of duplicating. Photos stay on the WordPress server (same URLs) — move the uploads folder before switching WordPress off. For very large sites use the command line:
cd /var/www/logicbit-news-platform/apps/api
npm run import:wp -- --site=SITE_SLUG --url=https://oldsite.com --user=admin --pass="xxxx xxxx xxxx xxxx" --max=20000
| Role | Can do |
|---|---|
| Super admin | Everything on every site; create and delete sites; manage users. |
| Admin | Design, homepage, settings, import/export and all content of their site(s). |
| Editor | Publish news; categories, tags, team, pages, menus, ads. |
| Author | Write their own drafts only. |
LogicBit-News-Platform.zip to /root/.cd /var/www
sudo bash logicbit-news-platform/backup.sh # backup first
sudo unzip -o /root/LogicBit-News-Platform.zip # replaces code only — .env and uploads stay
cd logicbit-news-platform && sudo npm run update # build + restart
Database changes are applied automatically when the API starts. Your content, settings and photos are kept.
sudo bash /var/www/logicbit-news-platform/backup.sh
# → /var/backups/logicbit-news/lbnews-YYYY-MM-DD-HHMM.tar.gz (the last 14 are kept)
Daily at 2:30 AM — sudo crontab -e and add:
30 2 * * * bash /var/www/logicbit-news-platform/backup.sh >/dev/null 2>&1
A backup contains the database, uploaded photos and the .env file. Copy backups to another place too (another server, Google Drive, S3…).
Run install.sh on the new server (do not open /install), then:
cd /var/www/logicbit-news-platform
mkdir /tmp/r && tar -xzf lbnews-2026-11-02-0230.tar.gz -C /tmp/r
pm2 stop all
DB=$(grep DATABASE_URL apps/api/.env | cut -d'"' -f2)
pg_restore --clean --if-exists --no-owner -d "$DB" /tmp/r/database.dump
tar -xf /tmp/r/uploads.tar -C apps/api
pm2 start all
/install immediately after running the installer.sudo ufw allow OpenSSH && sudo ufw allow 'Nginx Full' && sudo ufw enable
Ports 3000 and 4000 must not be open to the internet (Nginx forwards to them).
sudo apt-get update && sudo apt-get upgrade.| Problem | What to do |
|---|---|
| Site does not open / 502 Bad Gateway | pm2 status → pm2 logs lb-web / pm2 logs lb-api → pm2 restart all |
| HTTPS was not added | Check DNS: dig +short yoursite.com must show the server IP. Then run sudo bash install.sh yoursite.com you@email.com again. |
| Photo upload fails | The upload limit is 10 MB per photo — resize large camera photos (2000 px wide is plenty). |
| Change not visible | Saving in the admin clears the cache automatically. If you use Cloudflare, purge its cache. |
| Site down after a reboot | pm2 resurrect, then pm2 startup and pm2 save. |
| Forgot the admin password | Another super admin can set a new one in Users → Edit. Otherwise contact support. |
| Wrong site shows for a domain | Add the domain under All Sites → (site) → Domains exactly as typed in the browser (with and without www). |
npm run dev:api and npm run dev:web in two terminals, then http://localhost:3000/install. Needs Node.js 20 and PostgreSQL.npm run typecheck (TypeScript strict mode).apps/web/src/lib/templates/presets.ts — add a palette with one line in PALETTES, a family in FAMILIES.apps/api/src/db/schema.ts, SQL migrations in apps/api/drizzle/.cp .env.example .env, set DB_PASSWORD and JWT_SECRET, then docker compose up -d --build.README.md.Can I use shared hosting / cPanel? No — a VPS with root access is needed (Node.js + PostgreSQL). Small VPS plans cost about US$6–12 per month.
How many sites can one installation run? As many as the server can handle. Each needs its own domain.
Do I need WordPress? No. WordPress is only needed if you want to import from an existing WordPress site.
Is it in English or Nepali? Both. Each site can be English or Nepali.
Can I install it for a client? See the licence terms in licensing/LICENSE.txt.
Open-source software used (all permissive licences): Next.js, React, TipTap (MIT); NestJS (incl. @nestjs/jwt, throttler, serve-static), bcryptjs, class-validator, class-transformer, helmet, multer, pg (MIT); Drizzle ORM, RxJS, reflect-metadata (Apache-2.0); dotenv (BSD-2-Clause); nepali-date-converter (MIT). Fonts via Fontsource under the SIL Open Font License 1.1 (apps/web/public/fonts/OFL.txt). Icons, demo illustrations and demo ad banners are original artwork made for this item. Full list: licensing/THIRD-PARTY-NOTICES.txt.
Open a request on the item page (Support tab) at LBS Market, or My Account → Support, with your purchase code. Support hours: Sunday–Friday, 10:00–18:00 Nepal time (UTC+5:45).
Support covers questions about the item's features, bug fixes and help with the documented installation steps. It does not cover customisation, server administration beyond these steps, or third-party services.
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 MongoDB
by LBS Market in Next.js
by LBS Market in AI Tools
by LBS Market in Next.js
LogicBit News Platform Next.js + NestJS + PostgreSQL
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.