Ever since I started focusing on boosting my immune system through diet and exercise, we only rarely even get a cold. I think focusing on veggies in the diet and avoiding packaged and processed foods is a good start, and as you mentioned, avoiding sugar and doing basic health things such as getting enough sleep.
We drink green smoothies daily to make sure we get our maximum amount of veggies