You'll need supplements and to learn how to look after/feed/gutload insects too.
I dust the insects lightly just before feeding them to the chameleon with a phos free calcium powder at almost every feeding...I dust them twice a month lightly with a phos free calcium/D3 powder and twice a month with a vitamin powder with a beta carotene (prOformed) source of vitamin A. Some chameleons may need a prEformed source of vitamin A once in a while too. That's up to you to decide.
Calcium is important in bones and muscle contractions and other systems but most insects lack enough of it. To use the calcium the chameleon needs vitamin D3 which it can produce (without overdosing as long as it can in and out of the rays) from exposure to the sun or a UVB light. The light from either source should not pass through glass or plastic. D3 from supplements can build up in the system and lead to health issues which is why we use it so seldom. Vitamin A from prEformed sources can build up in the system too...but prOformed sources won't build up. Calcium, phos, D3 and vitamin A all need to be in balance.
I gutload crickets, locusts, super worms, roaches with a wide assortment of greens (dandelions, collards, endive, escarole, kale, etc.) and veggies (carrots, sweet peppers, sweet potato, squash, zucchini, etc) and a little bit of fruit (Apple, pear, berries, etc.).
Please be aware that females of many species of chameleons can lay eggs without having been mated so you need a laying bin in the cage for them.
I hope this helps.