Q:

How can I train my pup not to pee or poop in house

Answer

Set out a place inside for the puppy to go, then slowly move it near the door and eventually outside. Praise it when it does it.