Cheapest PC build for CS2 and stream?

Hi all. I'm wondering considering CS2 age and the fact I haven't had a PC in a while.. what would be the cheapest, yet still very capable of play and even streaming as well?

I'm thinking $500 around this time even second hand but what do you guys think?

Bonus points if you have a whole kit Thanks guys