Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
./nodebb log -> To see the logs
./nodebb status -> To check is nodebb running or not
./nodebb activate plugin-name -> To activate the plugin
./nodebb reset -p plugin-name -> To reset/disable the plugin
./nodebb stop -> To stop nodebb

Mandatory Plugins

We have built our own plugins based on our need. We need to enable those plugins.

nodebb-plugin-create-forum

Contains all custom api

https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git

nodebb-plugin-sunbird-oidc

User login api

https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-oidc.git

Activating Plugins

In this plugins, We added our own apis. Like User login, Enable discussion, read discussion context, disable discussion, user read based on sunbird id …. etc.

To activate plugin. Use below command.

a. Using repo as a npm module.

Code Block
npm install https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git
./nodebb activate nodebb-plugin-create-forum

b. Using from local

  • clone the repo https://github.com/Sunbird-Ed/nodebb-plugin-sunbird-api.git`

  • Execute command npm install

  • Execute command npm link

  • Go to nodebb terminal and execute command npm link nodebb-plugin-create-forum

  • And execute command ./nodebb build

Info

Note: When you enable or disable any plugin, You have to rebuild and restart your nodebb. Then only the changes will reflects.

Do the same thing for other plugin.