That's not too hard, but without room to grow something for the cows and pigs to eat, it could be problematical. Chickens and rabbits however are easy to raise even in an urban environment. Goats are another possibility. The young ones are quite tasty. (Cabrito, yumm). You can also get milk from them to make a decent cheese or for cooking. I don't much care for the taste myself, but it's drinkable.
So all I have to do is make room to grow for myself, then I'm "in like Flint"?
My wife and I used to raise goats for meat and milk. Es verdád, cabrito es muy saboroso. (The goats are fun pets, too.)
I didn't much like the taste of goat milk either, but we fed it to drop calves we bought at auction, and occasionally the pigs.
We visited the dumpsters behind supermarkets to feed the pigs, and corn-fed the calves after they were weaned.
For ten years, we never bought eggs or meat in the supermarket.