How do I set the plug in up Affiliate

I'm trying to figure out how to set it up so that people can sign up to be an affiliate and then choose the programs or items that they can receive a commission on.