a Galleon forum exporter to be required by nodebb-plugin-import.
It's just an exporter of Galleon, that provides an API that nodebb-plugin-import can use to exporter source forum data and import it to NodeBB's database. So, it's not really a conventional nodebb-plugin.
it doesn't really need to be, nor that you can use it within NodeBB it self, but, having this as a plugin have few benefits:
- a nodebb- namespace, since you can't really use it for anything else
- it can easily
require
NodeBB useful tools, currently
// you don't have to do this, nodebb-plugin-import will require this plugin and use its api
// but if you want a run a test
var exporter = require('nodebb-plugin-import-galleon');
exporter.testrun({
dbhost: '127.0.0.1',
dbport: 3306,
dbname: 'smf',
dbuser: 'user',
dbpass: 'password',
tablePrefix: 'galleon_'
}, function(err, results) {
/*
results[0] > config
results[1] > [groupsMap, groupsArray]
results[2] > [usersMap, usersArray]
results[3] > [messagesMap, messagesArray]
results[4] > [categoriesMap, categoriesArray]
results[5] > [topicsMap, topicsArray]
results[6] > [postsMap, postsArray]
*/
});