I was able to install it by following the instructions from here: https://products.containerize.com/discussion-forum/nodebb
I already have node.js installed on my computer. I did not install redis or nginx.
I have a mac, so on Terminal, after I created a directory called "nodebb", I skipped the first few lines of the instructions, and just pointed to the directory I created, by using the "cd" command. I then created another directory called NodeBB inside the nodebb directory. You may skip creating two directories and just create a directory called "NodeBB". I pointed to this directory by using the cd command.
Then this line
"git clone -b v1.15.x https://github.com/NodeBB/NodeBB.git ."
was the key for me.
After I typed that, nodebb was cloned to the directory.
Then I ran "./nodebb setup".
I used mongo for the database.
When prompted, I pasted the connection string that I got from mongodb's site. I substituted "nodebb" for the database part in the string. (I set up mongodb (Cloud Atlas) beforehand). The instructions that come up on Terminal will tell you to call your database "nodebb".
After that step, the program ran automatically and installed the files. It asked me to put in the username and password for mongodb and it also asked me to choose a name for admin and password. You might have to wait a while as it pauses for a long time after "Confirm Password". I thought there was some problem and was tempted to abort the operation, as it was taking a long time, but it did come up with further instructions after a while.
I typed "./nodebb start" when the setup finished and then went to "localhost:4567", and this time, I was able to see a normal board, and could log in as admin.
I write this follow-up in case another mac user has trouble installing nodebb. In the end, setup was pretty straightforward and did not involve a lot of steps. My OS is High Sierra.
The instructions, including the ones for Linux, at the official nodebb site did not work for me.
config.json: url not asked when installing
-
The url in config.json gets set to
http://localhost:4567
but it's not actually asked when installing.Shouldn't it be asked when installing?
-
It should, yes... how are you invoking setup? There are multiple ways, but
./nodebb setup
should ask it as the first question. -
I'm using the web setup.
That's what comes up when installing in the Docker.
-
@badding Thanks, looks like the default
localhost:4567
is just assumed and must be changed inconfig.json
afterwards.gh#6502
-
Also, the
port
in the config.jsonurl
seemed to break emojis.I had this in the url:
http:/forums.domain.com:4567
and emojis didn't work. I took the port out and emojis worked.The port is defined elsewhere in the config, so it probably doesn't need to be in the url?
-
That is correct. The port if not defined at all is assumed to be 4567, and should only be in the url if the port is required to access the site.