Mining is the most straightforward way to obtain resources in Starfield. Resources are then used to upgrade your weapons and spacesuits, along with building outposts and furnishing your apartments and home.