Introduction

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.

What's in the package

File / folderWhat it is
LogicBit-News-Platform.zipThe application source code. Upload this to your server.
documentation/index.htmlThis documentation (also inside the source zip).
licensing/Licence terms and third-party credits.
README.txtQuick 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)

Requirements

ItemMinimumRecommended
ServerVPS / cloud server with root (sudo) SSH accessDigitalOcean, Linode/Akamai, Vultr, Hetzner, AWS Lightsail…
Operating systemUbuntu 22.04 / 24.04 or Debian 12Ubuntu 24.04 LTS
Memory / CPU / disk2 GB RAM, 1 vCPU, 20 GB4 GB RAM, 2 vCPU for busy or several sites
DomainA 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.

This is a Node.js application. It does not run on ordinary cPanel / shared PHP hosting. If you need a WordPress version, see the LogicBit News WordPress theme.

Installation (one command)

  1. Point your domain to the server. At your domain registrar or DNS (e.g. Cloudflare) add an A record for yoursite.com and www.yoursite.com → your server's IP. Wait until ping yoursite.com shows that IP (usually minutes, sometimes a few hours).
  2. Upload the code. Copy 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/
  3. Connect by SSH and unzip:
    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
  4. Run the installer (5–10 minutes):
    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.
  5. Open https://yoursite.com/install in your browser and finish with the web installer (next section).

Installer options

OptionUse it when
--no-sslDNS does not point to the server yet. Run the same command again later without it to add HTTPS.
--no-wwwYou don't want www.yoursite.com.
--dry-runOnly show what would be done.

Running install.sh again is safe — the existing database and .env are kept.

Web installer

  1. Open https://yoursite.com/install.
  2. Enter the site name, domain, language (Nepali or English), pick a template, choose whether to add demo content (sample news, categories, reporters and ads — recommended for a first look; you can delete it later) and create the admin account (email + strong password).
  3. Click Install. You are logged in to the admin panel at https://yoursite.com/admin.
Finish /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.

After installing — checklist

  1. Site Settings → General: logo, favicon, "No image" photo, tagline, language.
  2. Design & Templates: choose your template, then adjust colours, fonts and font sizes.
  3. Categories (with colours), Menus (Main menu, Top bar, Footer) and Team / Byline (reporters with photos).
  4. Homepage Builder: keep Automatic (recommended) or switch to Custom.
  5. Ads Manager: add your ads — open yoursite.com/?lb_ad_spots=1 to see every ad place.
  6. Site Settings → Footer: team, contact details, registration number, copyright.
  7. Users: create Editor / Author accounts for your team — never share the admin password.
  8. Set up the daily backup and the firewall.

Admin panel tour

Open https://yoursite.com/admin. With several sites, switch between them with the site switcher at the top.

MenuWhat you do there
DashboardQuick numbers, latest news, shortcuts.
Posts / Add New PostWrite and manage news; bulk actions.
Categories / TagsCategory colours (badge background + text), tag images (used in the "trending" section).
Team / BylineReporters and writers with photo, designation and social links. Each has a profile page.
MediaUploaded photos.
PagesAbout, contact, privacy policy…
Ads ManagerAll ads and ad places — see Ads manager.
Design & TemplatesTemplates, colours, fonts, font sizes and layout parts with live preview.
Homepage BuilderAutomatic or custom homepage, main news options.
MenusMain menu, top bar menu, footer menu.
Site SettingsGeneral, top bar, header, menu bar, breaking ticker, trending bar, category pages, single post, footer, social links, misc, custom code.
Import / ExportCopy design + settings between sites; import from WordPress.
All Sites / UsersSuper admin only: create sites, connect domains, manage users.

Writing news

  1. Posts → Add New Post. Write the title and the story in the editor (headings, lists, links, images, YouTube).
  2. Pick categories (and a primary category for the badge), add tags and a featured image with caption.
  3. Post options:
    • 📝 Post Subtitle — shown under the title.
    • 🔥 Show on Homepage (Flash) — the big "main news" at the top of the homepage. Only ticked news appear there.
    • ⚡ Breaking News — shows in the breaking ticker.
    • ⭐ Featured Post, 🎬 YouTube Video (URL or ID — embedded automatically), 📅 Custom Published Date.
    • 👤 Select From Team (Byline) or ✍️ Other Byline — who wrote it.
    • SEO title / description — optional; the title and summary are used otherwise.
  4. Publish now or set a date and time to schedule.

No photo? The site uses the first photo inside the story, then your "No image" photo, then your logo — never an empty box.

Design & 60 templates

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.

Layout families

FamilyLook
ClassicLogo + header ad, solid menu, big centred headlines.
PortalLive ticker, trending bar, lead story with side cards.
BroadsheetNewspaper look with a serif masthead and three columns.
HimalayanBold masthead, feature story and live-updates wire.
MagazineCompact header, pill menu, image overlay grid.
KhabarClean 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).

Article (single post) layouts

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).

Other layout parts

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.

Homepage

Ads manager

  1. Ads Manager → Add ad. Choose an image (with an optional separate phone image) and a link, or paste ad code (AdSense, HTML, JavaScript).
  2. Tick the places where it should appear — one ad can be in many places (e.g. "Every sidebar").
  3. Optional targeting: device (desktop / phone), page type (home, news, category, page, search) and categories.
  4. Optional start / end dates — the ad hides itself after the end date. Status shows Live, Ends soon, Scheduled, Expired or Off.
  5. For in-article ads choose the paragraph number and "repeat every N paragraphs".

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.

Site settings

TabMain options
GeneralSite name, tagline, language, logo, favicon, "No image" photo, domains.
Top barDate (Nepali / English / both), social icons, colours.
Header / Menu barHeader ad, sticky menu, search, home icon, highlight button (e.g. "Latest news"), colours.
Breaking news ticker / Trending barOn/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 postLayout, related news, reading time, views, share buttons.
Footer / Social linksFooter 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 codeDate on cards (relative / Nepali / English), relative time word (अगाडि / अघि), scroll-to-top button; analytics and other custom code.

Nepali language & dates

More sites (multi-site)

  1. Point the new domain's DNS A record to the same server.
  2. On the server:
    cd /var/www/logicbit-news-platform
    sudo bash add-domain.sh newsite.com you@email.com
  3. In the admin: All Sites → New site and enter the domain 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.

Move from WordPress

For sites using the LogicBit News WordPress theme (older and current versions):

  1. Upload wordpress-plugin/logicbit-headless-export.php to the WordPress site's wp-content/plugins/ folder and activate LogicBit Headless Export.
  2. In WordPress: Users → Profile → Application Passwords → create one.
  3. In this admin: Import / Export → Import from WordPress → WordPress URL, username and the application password → Start.

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

Users & roles

RoleCan do
Super adminEverything on every site; create and delete sites; manage users.
AdminDesign, homepage, settings, import/export and all content of their site(s).
EditorPublish news; categories, tags, team, pages, menus, ads.
AuthorWrite their own drafts only.

Updating

  1. Download the new version from LBS Market → My Account → Downloads and upload LogicBit-News-Platform.zip to /root/.
  2. Run:
    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.

Backup & restore

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…).

Restore on a new server

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

Security checklist

Troubleshooting

ProblemWhat to do
Site does not open / 502 Bad Gatewaypm2 status → pm2 logs lb-web / pm2 logs lb-api → pm2 restart all
HTTPS was not addedCheck DNS: dig +short yoursite.com must show the server IP. Then run sudo bash install.sh yoursite.com you@email.com again.
Photo upload failsThe upload limit is 10 MB per photo — resize large camera photos (2000 px wide is plenty).
Change not visibleSaving in the admin clears the cache automatically. If you use Cloudflare, purge its cache.
Site down after a rebootpm2 resurrect, then pm2 startup and pm2 save.
Forgot the admin passwordAnother super admin can set a new one in Users → Edit. Otherwise contact support.
Wrong site shows for a domainAdd the domain under All Sites → (site) → Domains exactly as typed in the browser (with and without www).

For developers

FAQ

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.

Credits & licences

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.

Support

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.

Changelog

2.1.0

2.0.0