[Switch] NodeBB environment construction

This article is reproduced from: https://my.oschina.net/pauli/blog/198405

 

Summary: The NodeBB (https://nodebb.org/) environment is built under Windows 7                             

                

material

rely

command line settings

Download nodebb code:

cd D:\
git clone git://github.com/designcreateplay/NodeBB.git nodebb 

If git is not installed, you can download the compressed package: https://github.com/designcreateplay/NodeBB/archive/master.zip

Set up a MongoDB database

cd D:\nodebb
mkdir db
start mongod.exe --dbpath .\db
mongo
use nodebb db.addUser( { user: "admin", pwd: "admin", roles: [ "userAdmin" ] } ) mongod stop start mongod.exe --setParameter textSearchEnabled=true --rest --dbpath .\db 

Install nodebb and start the service:

cd D:\nodebb
npm install
node app --setup
sh nodebb start 

The node app doesn't seem to be able to start. Fortunately, there is cygwin locally, so just run sh nodebb start directly.

success

Address: http://localhost:4567/ (admin, username/password: admin/admin)

snapshot snapshot

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325214163&siteId=291194637