Combine flour and salt in a bowl.
Create a well in the center and add the eggs.
Mix flour into the eggs until a dough forms.
Knead the dough for about 5 minutes until smooth.
Wrap the dough in plastic wrap and let it rest for 30 minutes.
Mix ricotta, Parmesan, spinach, nutmeg, and salt in a bowl for the filling.
Roll out the dough into thin sheets using a pasta machine.
Cut the pasta into squares, about 3 inches each.
Place a teaspoon of filling onto half of the squares.
Fold the other half over and seal the edges.
Boil the ravioli in salted water for 3-4 minutes until they float.
Drain and serve with marinara sauce and garnish with basil.