You can produce food and metal in your shelter, or collect them as rewards from battles, missions, activities, and raids. All resources can be gathered in game either from buildings in your base or battling and completing missions.
Missions, activities, and different areas of the open world have numerous rewards previews to help you see where different resources can be acquired.