From particles to fluid dynamics for flocking phenomena