The angel Moroni visited Joseph Smith three times in the night in the Smith family log home, telling Joseph Smith about the gold plates (the Book of Mormon) and the Lord's divine mission for him. Some of his instruction about the coming of Elijah is recorded in D&C 2.
The angel Moroni visited Joseph Smith again during the day and "related unto [him] all that he had related to [him] the previous night," after which Joseph Smith went to the hill and first saw the plates.
Joseph Smith received through the Urim and Thummim Doctrine and Covenants 3, a revelation calling him to repentance after entrusting Martin Harris with 116 pages of translation from the book of Lehi, which were lost.
Joseph Smith received Doctrine and Covenants 10, a revelation about the designs of wicked men who had made alterations to the 116 lost manuscript pages. Parts of this revelation may have been received as early as summer 1828.