Give the lizard plenty of perches. They can climb on the glass and screen, but it is better for them to have branches or plants to rest on. You want moderate humidity and good ventilation; I suggest a screen top that is half covered with glass, plastic, etc. Chopped coconut fiber (e.g. Eco Earth, Bed-a-Beast) is a great substrate. Keep it moist but not soggy. Some people have had anoles learn to drink from a bowl, but it is generally better to provide droplets for them to drink. Just use a spray bottle and mist the whole cage morning and evening. Tap water is fine.
The anole will be more active, colorful, and healthy if it feels secure, so provide lots of cover. Hollow logs, cholla sticks, cork rounds, and real or silk plants are great for this.
Anoles are insectivores. Crickets are a fine staple, just be sure to gutload and/or dust them. Small earthworms, phoenix worms, and small roaches are great. Waxworms are OK for occasional treats, but are too fatty for a staple. If you feed mealworms or superworms, be sure to crush the heads first (they can chew up the lizard's stomach after being swallowed otherwise), and even then don't feed too often, as they are mostly indigestible chitin. Wild-caught insects such as moths, grasshoppers, and flies are good so long as you collect them from pesticide-free areas. Avoid beetles, butterflies, ants, wasps, bees, aphids, and true bugs, as many are toxic or indigestible.
Some anoles like fruit; you can try offerring a little mashed up banana or other sugary fruit, or fruit-flavored baby food.