0.1.2 • Published 4 years ago

nodebb-plugin-import-cb v0.1.2

Weekly downloads
7
License
MIT
Repository
-
Last release
4 years ago

nodebb-plugin-import-galleom

a Galleon forum exporter to be required by nodebb-plugin-import.

What is this?

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.

Why is it even a 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

Usage within NodeJS only

// 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]
    */
});
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago