Hello and welcome to BYC! Glad you joined.
Coop in the corner of the barn, run outside the barn. They need sunlight, soil and fresh air to be healthiest.
How cold is it where you are? I let my chickens free range all year long. If you keep them free range all year, it would probably be ok to keep the coop inside the barn, as long as it is enclosed.