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.
Multi tenant use case
Riyadh Zenasni last edited by Riyadh Zenasni
I just want to know whether it is possible to use nodebb as a forum for multi tenant apps.
something like shopify allows people to create online shops. now lets say shopify wants to use nodebb as a tool to allow shops to have dedicated forums. You don't want to spawn a server for each shop, but you can create one nodebb instance and let shops use that as their own forum. This means when a user enters the forum from a given shop, they will see a forum branded under the shop name, not shopify as a hole.
I just want to know whether this is doable without a complete or significant change for the code base, for example one can add a field 'shopID' then the requests will return only users, posts, categories .... etc for that shop only.
I am open to suggestions too, in case their is a better way of doing it.
Thanks in advance, and let me tell you how awesome is this thing that you have built.
Shard last edited by
I think if you look at the Ghost blog plugin you'll find the way to do what you're looking for part of it.
For the branding, I think you'd need to do some template magic to only show the forums for a particular domain.
Riyadh Zenasni last edited by
@Shard Thanks for the reply.
With regards to the template magic, do you suggest modifying the source code found in the nodebb repository or is there a place to use some sort of hook, example: onForumLoaded hook or something
Shard last edited by
I've never attempted anything like what you're looking at and my depth at the template system is fairly shallow, but I think you can do everything you're looking at just with templates and if blocks.