← All guides
NodeBB
NodeBB is a Node.js forum platform built around real-time, WebSocket-driven discussions, installed from source with a CLI-driven setup script on top of Node.js and MongoDB.
This guide is synthesized from NodeBB's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
1Install Node.js
sudo apt-get updatesudo apt-get install -y ca-certificates curl gnupgcurl -fsSL https://deb.nodesource.com/setup_lts.x -o nodesource_setup.shsudo -E bash nodesource_setup.shsudo apt-get install -y nodejs2Install MongoDB
sudo apt-get install gnupg curlcurl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmorecho "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.listsudo apt-get updatesudo apt-get install -y mongodb-orgsudo systemctl start mongod3Clone and set up NodeBB
sudo apt-get install -y gitgit clone -b v4.x https://github.com/NodeBB/NodeBB.git nodebbcd nodebb./nodebb setupRun git and ./nodebb commands as a regular (non-root) user to avoid file-ownership issues.
4Start NodeBB
./nodebb start