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.
- 60 ready templates (6 layout families × 10 colour palettes, including dark mode) and 5 article layouts — every colour, font, size and layout part can be changed in the admin with a live preview.
- Automatic homepage built from your own categories, or a drag-and-drop homepage builder with 13 block layouts.
- Ads manager — 36 ad places, unlimited ads, one ad in many places, device / page / category targeting, scheduling, rotation, click counts, popup and sticky ads, and an "ad spots" mode that shows every place on your live site.
- Built for Nepali news — Bikram Sambat dates, Nepali digits, "५१ मिनेट अगाडि" relative time, 16 self-hosted Devanagari/Latin fonts. English sites work just as well.
- WordPress importer — move a site that uses the LogicBit News WordPress theme (posts, categories, tags, reporters, settings and ads) in one go.
- SEO ready (Open Graph, JSON-LD NewsArticle, sitemap.xml, RSS feed, robots.txt), fast server rendering and fully responsive.
What's in the package
| 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)
Requirements
| 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.
Installation (one command)
- Point your domain to the server. At your domain registrar or DNS (e.g. Cloudflare) add an A record for
yoursite.comandwww.yoursite.com→ your server's IP. Wait untilping yoursite.comshows that IP (usually minutes, sometimes a few hours). - Upload the code. Copy
LogicBit-News-Platform.zipto the server (e.g. with an SFTP app such as FileZilla / WinSCP, orscp):scp LogicBit-News-Platform.zip root@YOUR_SERVER_IP:/root/ - 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 - Run the installer (5–10 minutes):
It installs the software, creates an empty database with a random password, writessudo bash install.sh yoursite.com you@email.comapps/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. - Open
https://yoursite.com/installin your browser and finish with the web installer (next section).
Installer options
| 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.
Web installer
- Open
https://yoursite.com/install. - 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).
- Click Install. You are logged in to the admin panel at
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.After installing — checklist
- Site Settings → General: logo, favicon, "No image" photo, tagline, language.
- Design & Templates: choose your template, then adjust colours, fonts and font sizes.
- Categories (with colours), Menus (Main menu, Top bar, Footer) and Team / Byline (reporters with photos).
- Homepage Builder: keep Automatic (recommended) or switch to Custom.
- Ads Manager: add your ads — open
yoursite.com/?lb_ad_spots=1to see every ad place. - Site Settings → Footer: team, contact details, registration number, copyright.
- Users: create Editor / Author accounts for your team — never share the admin password.
- 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.
| 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. |
Writing news
- Posts → Add New Post. Write the title and the story in the editor (headings, lists, links, images, YouTube).
- Pick categories (and a primary category for the badge), add tags and a featured image with caption.
- 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.
- 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
| 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).
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
- Automatic (recommended) — the homepage is built from your categories in the order that suits the template. Changing the template changes the homepage too.
- Custom — add, remove and drag sections; for each choose the category, layout (13 options), number of posts, colours, sidebar and an ad slot.
- Big main news — shows only news ticked "Show on Homepage (Flash)". When nothing is ticked you can hide the area or show the latest news instead.
Ads manager
- Ads Manager → Add ad. Choose an image (with an optional separate phone image) and a link, or paste ad code (AdSense, HTML, JavaScript).
- Tick the places where it should appear — one ad can be in many places (e.g. "Every sidebar").
- Optional targeting: device (desktop / phone), page type (home, news, category, page, search) and categories.
- Optional start / end dates — the ad hides itself after the end date. Status shows Live, Ends soon, Scheduled, Expired or Off.
- 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
| 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. |
Nepali language & dates
- Choose Nepali as the site language (installer or Site Settings → General). Interface text, dates and digits switch to Nepali.
- News dates use Bikram Sambat (e.g. २०८३ कार्तिक ९, सोमबार) and relative time ("५१ मिनेट अगाडि" or "अघि" — Site Settings → Misc).
- Top bar date: Automatic, Nepali, English or both (Site Settings → Top bar).
- Fonts are self-hosted (no Google Fonts requests): Mukta, Noto Sans/Serif Devanagari, Yantramanav, Martel, Khand, Baloo 2, Hind, Tiro Devanagari Hindi, Laila and Latin pairs.
More sites (multi-site)
- Point the new domain's DNS A record to the same server.
- On the server:
cd /var/www/logicbit-news-platform sudo bash add-domain.sh newsite.com you@email.com - 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):
- Upload
wordpress-plugin/logicbit-headless-export.phpto the WordPress site'swp-content/plugins/folder and activate LogicBit Headless Export. - In WordPress: Users → Profile → Application Passwords → create one.
- 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
| 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. |
Updating
- Download the new version from LBS Market → My Account → Downloads and upload
LogicBit-News-Platform.zipto/root/. - 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
- Finish
/installimmediately after running the installer. - Firewall — allow only SSH and web:
Ports 3000 and 4000 must not be open to the internet (Nginx forwards to them).sudo ufw allow OpenSSH && sudo ufw allow 'Nginx Full' && sudo ufw enable - Use strong passwords and give your team Editor / Author accounts, not admin.
- Keep the server updated:
sudo apt-get update && sudo apt-get upgrade. - Daily backups, stored off the server.
Troubleshooting
| 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). |
For developers
- Local development:
npm run dev:apiandnpm run dev:webin two terminals, thenhttp://localhost:3000/install. Needs Node.js 20 and PostgreSQL. - Type-check everything:
npm run typecheck(TypeScript strict mode). - Templates:
apps/web/src/lib/templates/presets.ts— add a palette with one line inPALETTES, a family inFAMILIES. - Database: Drizzle ORM; schema in
apps/api/src/db/schema.ts, SQL migrations inapps/api/drizzle/. - Docker (optional):
cp .env.example .env, setDB_PASSWORDandJWT_SECRET, thendocker compose up -d --build. - More technical notes (field mapping, API reference):
README.md.
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
- New "Khabar" layout family (10 colours, 60 templates in total) with "special stories" main news.
- New article layouts for every template: Khabar and Focus.
2.0.0
- First release: 50 templates, automatic homepage, ads manager with 36 places, web installer, one-command server installer, multi-site, WordPress importer, Nepali dates.