@baris said:
Exporting data from NodeBB is pretty simple, if your data set is small you can just read the posts/topics and write them to a text file.
function export(set, prefix) { db.getSortedSetRange(set, 0, -1, function(err, ids) { var keys = ids.map(function(id){ return prefix + id; }); db.getObjects(keys, function(err, data) { fs.writeFile('/path/to/' + set + ' .txt', JSON.stringify(data)); }); }); } export('posts:pid', 'post:'); export('topics:tid', 'topic:');
The above code would export all posts and topics in JSON format, you would still need to write an importer for your target platform.
This is a great level of support! I appreciate it and for potential future adapters of nodeBB, it's definitely good to know that you can try without being locked in.