Create a NodeBB installation test on localhost



  • Hi there guys, I'd like to test this software on localhost. I currently have MAMP installed. Suggestions?



  • @Dakoom basically you can run NodeBB on port 80 without the need of any other webservers.



  • But is there some sort of installation script or do I have to use the command line to configure it to be working on MAMP?


  • GNU/Linux

    MAMP = Mac OS X Apache MySQL PHP, Perl, or Python

    NodeBB is node.js based, using redisdb or mongodb; Apache or Nginx are mostly needed for reverse proxy if you don't want to use port-numbers within URL or root-permissions for the node-process.

    So basically for local tests where you don't bother about port-numbers within URL you don't need/want-to-use MAMP at all. node.js !== PHP ;)

    Please take a look at the docs for standard installation on a MAC.



  • So I installed node and homebrew as per docs, I entered the previous commands and now I'm stuck at: git clone -b v0.9.x https://github.com/NodeBB/NodeBB.git. The terminal is stuck here. Maybe is it donwloading it? Excuse me but I'm pretty noob on this type of things. I never used these technologies.


  • Translator

    Is Git installed by default on a Mac? I don't think so, but a work around is to get the files as a ZIP from the github page it self. https://github.com/NodeBB/NodeBB/archive/v0.9.x.zip (though also not recommended due that it will be harder to update your forum in a production environment)



  • Oh ok, then now I'm downloading and I'l linstall Git. Then I'll rety to send again that command. I'll let you know! :)



  • Ok, I installed Git, now the command works. Currently cloning... and finally installing dependencises... and I received these erros:

    It also ask me now for a redis database name. What should I write for it?

    npm WARN deprecated lodash@0.9.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
    npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0

    bufferutil@1.2.1 install /Users/Dakoom/NodeBB/node_modules/bufferutil
    node-gyp rebuild

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
    SOLINK_MODULE(target) Release/bufferutil.node

    utf-8-validate@1.2.1 install /Users/Dakoom/NodeBB/node_modules/utf-8-validate
    node-gyp rebuild

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    CXX(target) Release/obj.target/validation/src/validation.o
    SOLINK_MODULE(target) Release/validation.node

    heapdump@0.3.7 install /Users/Dakoom/NodeBB/node_modules/heapdump
    node-gyp rebuild

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    CXX(target) Release/obj.target/addon/src/heapdump.o
    SOLINK_MODULE(target) Release/addon.node


    EDIT: Ok, installed. Then I suppose that when I entered the db name it automatically created it. Ok, I have it installed and I'll try it a little bit! :) Thank you all for your suggestions!


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.