How to create materials totally within blueprint???

Base material, or Master material must be created before, but later you can change everything with code. Master material can be empty material.

In this sample, it set BaseColor texture, but can be just color with vector parameter. In similar way any other material settings can be set, like a roughness, uv etc.

Last step is set created material to mesh.