How to create YUM repository in Centos 7!

I was working on an open source project recently, and I needed a repository to host some custom packages. However, you might have your own reasons to create yum repository. You can create a local version of an online repository so everytime you install a package network bandwidth is not consumed. Or there can be many other possible reasons. In…