There are many posts on butterflies and moths here on this blog. Here is a list of the pages with information on butterfly gardening and the life cycle of butterflies and moths on this blog.
The Butterfly Life Cycle
Butterfly and Moths Species
Plant Lists for Attracting Butterflies and Moths
North American Butterfly Association Regional Garden Guides http://nababutterfly.com/regional-butterfly-garden-guides/
HOSTS – a Database of the World’s Lepidopteran Hostplants https://www.nhm.ac.uk/our-science/data/hostplants/