where did it get its name from?
The word "Nazi" was a hypocorism of the German male name "Igna(t)z".
Nazism
In this sense, the word "Nazi" was a hypocorism of the German male name "Igna(t)z" (itself a variation of the name Ignatius)—Igna(t)z being a common name at the time in Bavaria, the area from which the NSDAP emerged.

what is the night of the long knives? A purge took place in Nazi Germany. can you tell me something about their ideology? Nazism.
wiki:13967189
Nazism [SEP] Etymology
The full name of the party was "Nationalsozialistische Deutsche Arbeiterpartei" (); they officially used the acronym NSDAP. The term "Nazi" was in use before the rise of the NSDAP as a colloquial and derogatory word for a backwards farmer or peasant, characterizing an awkward and clumsy person. In this sense, the word "Nazi" was a hypocorism of the German male name "Igna(t)z" (itself a variation of the name Ignatius)—Igna(t)z being a common name at the time in Bavaria, the area from which the NSDAP emerged. In the 1920s, political opponents of the NSDAP in the German labour movement seized on this and—using the earlier abbreviated term "Sozi" for "Sozialist" () as an example—shortened NSDAP's name, "Nationalsozialistische", to the dismissive "Nazi", in order to associate them with the derogatory use of the term mentioned above.