-
Notifications
You must be signed in to change notification settings - Fork 3
NodeBB setup without Open edX
HamzaIbnFarooq edited this page Jan 27, 2020
·
5 revisions
Sometimes, developers need to use this NodeBB-Plugin along with NodeBB without setting up open edX, this guide helps them to do so.
- node version 8.12
- MongoDB version 4.0
mongo # You may need root user to login
use nodebb
db.createUser({user:"nodebb",pwd:"<ENTER-A-SECURE-PASSWORD eg: password>",roles:[{role:"readWrite",db:"nodebb"},{role:"clusterMonitor",db:"admin"}]})
quit()
mkdir nodebb_devstack
cd nodebb_devstack
git clone [email protected]:NodeBB/NodeBB.git
git clone [email protected]:edly-io/nodebb-plugin-openedx-discussion.git
cd NodeBB
git checkout v1.12.x
cd ..
{
"url": "<IP-TO-RUN-NODEBB eg: http://127.0.0.1:4567 >",
"secret": "<APP-SECRET eg: aaaa8662-bb9a-4f8b-b4bb-e1ffe88fecda >",
"database": "mongo",
"port": "<NODEBB-PORT eg: 4567 >",
"mongo": {
"host": "<MONGODB-IP eg: 127.0.0.1 >",
"port": "<MONGODB-PORT eg: 27017 >",
"username": "<MONGODB-USERNAME eg: nodebb >",
"password": "<PASSWORD-OF-USER eg: password >",
"database": "nodebb",
"uri": ""
}
}
ADMIN_USER=$(cat << EOF
{
"admin:username":"admin",
"admin:password":"admin1234",
"admin:password:confirm":"admin1234",
"admin:email":"[email protected]"
}
EOF
)
cd NodeBB
./nodebb upgrade
./nodebb setup "$ADMIN_USER"
./nodebb build
cd ..
cd nodebb-plugin-openedx-discussion
npm link
cd ..
cd NodeBB
npm link nodebb-plugin-openedx-discussion
cd node_modules/nodebb-plugin-openedx-discussion
npm i
npm i module-alias
npm i winston
cd ../..
./nodebb activate nodebb-plugin-openedx-discussion
./nodebb build
npm i grunt-cli
npx grunt