Study and practice.
This is really too vague a question for a forum. Do some research, try to learn something, and if you have a problem, come back and ask.