So, I have the circuit below:

And I would like to know how to implement a DAC, such as the MSp4725, to adjust the voltage. I know that the LM317 tries to form a 1.25v reference between the V
out and the ADJ pin, but how would I emulate this digitally. Also, as far as I know, I would need an Op=Amp to amplify the signal of the DAC. Circuit diagrams are very much appreciated, as well as any other help
Cheers,
Eric