nodeBB is a free internet forums software powered by nodeJS (javascript) and the mongoDB database.

sudo yum install epel-release -y && yum install nodejs -y
Install mongodb server and client
yum -y install mongodb-server && yum -y install mongodb // install server and client
systemctl enable mongod // activate it for startup
systemctl start mongod // start the server
mongo // open mongodb console thanks to the mongodb client
Add a nodeBB user to mongoDB
mongo // go to the console
use nodebb // create the nodebb database
change the password and copy and past the code below
db.createUser(
{
user: "mongoadmin",
pwd: "mongoadmin",
roles: [ "readWrite" ]
}
)
type enter then type “exit” to exit the console
Activate mongoDB authorization
nano /etc/mongod.conf
uncomment #auth = true
systemctl restart mongod
yum -y groupinstall "Development Tools" && yum -y install git ImageMagick
git clone -b v1.10.x https://github.com/NodeBB/NodeBB.git nodebb // copy the installation files to the server
cd nodebb
./nodebb setup