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
- Official website: https://nodebb.org
- Code: https://github.com/designcreateplay/NodeBB
- Open Source China: http://www.oschina.net/p/nodebb
- Further reading: https://github.com/designcreateplay/NodeBB/wiki/Installing-NodeBB-With-MongoDB
rely
- NodeJS: http://nodejs.org , add the node.exe directory to the environment variable PATH
- MongoDB: http://www.mongodb.org , add the mongod.exe directory to the environment variable PATH
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)