Republics usually have some founding document and a formal system for changing that. A Basic Law or Constitution or a history of common laws, usually with protections for basic human rights like property and free speech.
In a democracy, the majority (or the loudest, angriest demographic) just says what they want, usually with polling, protests, and voting, and the government gives it to them. Mob rule.