It is appropriate to ask someone directly if they like you, but its important to do so in a respectful and non-threatening manner. Be prepared for any answer and respect their response.