Code the Factory contract
After coding your model contract (i.e., the contract that the Factory will be able to clone) find out how to code your Factory contract.
Your Factory can be without a business model (i.e., the Factory host does not earn any Fees) or with a fee-based business model earning fees every time their contracts are cloned and/or used.
In either case, the starting point is the standard Factory contract that must be implemented and extended in your custom Factory.
Learn how the standard Factory contract works. It must used to code both a Factory with and without a business model. Not being an abstract contract, you can even deploy the standard Factory contract as it is
Learn how to code a custom Factory without a business model
Learn how to code a custom Factory with a real fee-based business model