To get started watch these videos on how DSC works https://mva.microsoft.com/en-us/training-courses/getting-started-with-powershell-desired-state-configuration-dsc--8672?l=ZwHuclG1_2504984382
The DSC modules used in this set of scripts can be found on github or on http://www.powershellgallery.com/