A GTX1050ti will run off of motherboard slot power, 75w max.
I5-7700 is a 65w TDP processor.
Really, you may only need 300w.
But, I recommend more, depending on what graphics card upgrade you might envision in the future.
I have no problem overprovisioning a PSU a bit. Say 20%.
It will run cooler, quieter, and more efficiently in the middle third of it's range.
A PSU will only use the wattage demanded of it, regardless of it's max capability.
Here is a chart that can help assess that:
http://www.realhardtechx.com/index_archivos/Page362.htm
Whatever you do, buy a quality psu.
Tier 1 or 2 if you can from a list such as this.
http://www.tomshardware.com/forum/id-2547993/psu-tier-list.html
Seasonic is always good and seems to be on sale this time of year.
Perhaps this tier 2 SeaSonic S12II 520 Bronze 520W for $45:
https://www.newegg.com/Product/Product.aspx?Item=N82E16817151094