How do I add a node to a blueprint with C++

by node, are you looking for adding a new function into blueprint? because in that case, id recommend you create a plugin with the type of blueprint function library. its a pretty simple setup operation, and unreal handles most of the stuff for you.
id also recommend taking a look at other peoples plugins (or the engine code) to see what they are doing. a simple plugin with one .h and one .cpp file would probably be a ideal to work with.