What should your diet consist of to prevent diabetes?

I know not to eat too much food with carbohydrates, what is the amount that I do need to eat? And what should I regularly eat?