Awning Roof

How do I hang a 3’ awning roof off of a two story building. I assume it hangs off of the 2nd story floor joist but is it just secured with metal hangers and if it doesn’t go all around the building how do you end the corners. Thanks