Hey man, so my advice is purely from my own experience, as I'm not a 'trained' vocalist - however I've got a fair bit of live gigging vocs experience.
From what your describing (hoarseness when speaking etc) it sounds like you could be straining/pushing your voice when singing - this has happened to me a fair few times.
A few things that have helped me are:
1. Warming Up Properly
So many singers go straight into singing without warming up, and it can end up causing vocal strain. The voice is essentially a muscle, so spending a decent ammount of time doing warm ups before you even start singing will help your vocal longevity. If you YouTube 'vocal warm ups' you'll find a whole host of techniques to try.
2. Know Your Limits
I've been guilty in the past of really pushing/straining to hit high notes/notes teetering on the limit of my range, and it always lead to hoarseness after. I was basically pushing my vocal chords past their limit. Now if I need to sing something I make sure that nothing feels painful/uncomfortable when I need to belt/push my voice etc. Always transpose the let down if you feel like you're fighting your voice for a note.
3. Hydrate
It seems obvious but make sure you have a good supply of water (room temp if possible) to keep your vocal cords hydrated. From experience, dryness/hoarseness is much more likely to happen if your singing for long periods of time and your vocal cords become dry/un-lubricated. Adding squeeze honey to your water will also sooth your cords - I used to use it if I had a tired voice before a gig - it really made a difference
4. Limit your dairy intake.
This one took me by surprise but really helped. Make sure before you sing you keep any Milk/cheese/Milky Coffee etc consumption to a minimum. Milk & Cheese can coat your cords in an unhelpful way, creating phlegm and causing you to want to clear your throat constantly - creating friction, hoarseness etc. ( Spicy/crumbly foods can also cause this)
Hope this helps!