A self-consistent approach to neutron stars