Meet a new classmate: greet them, exchange names and acknowledge the introduction. Classmates commonly use tu.
Bonjour greets someone during the day. It works with a new classmate as well as in a shop.
S'appeler means to be called by a name. With je, the present form is je m'appelle: m' belongs to the verb, and the name follows. Je m'appelle Anna means My name is Anna.
Tu t'appelles is the present form of s'appeler with familiar tu; t' belongs to that form, and the final written s is silent. Put comment before the subject and verb, without changing their order: Comment tu t'appelles ? asks your classmate's name.
Say enchanté when you meet someone. A woman writes enchantée, a man enchanté; they sound the same. It is a conventional pleased-to-meet-you response.
Put est-ce que before a statement to make a yes-or-no question, keeping the words that follow in the same order: Tu t'appelles Anna becomes Est-ce que tu t'appelles Anna ?. This checks a proposed name; Comment tu t'appelles ? asks for the name.