There are a number of ways to obtain the low voltages required to run small projects from the wall power outlet. The simplest way is to buy a factory-built molded supply which is designed to plug directly into the wall outlet. Some such supplies have an internal voltage regulator and need no additional parts, others provide an unregulated DC voltage and many are simply AC transformers in a box. The regulated types offer less power output for a given size with currents limited to a couple of hundred milliamps but the AC transformer types can provide several amps.
The distinct advantage of the molded supply is that no line-voltage wiring is required and they are easy to find in local stores. Some deluxe models have a terminal for the earth ground which may be used to ground the chassis of your project. Such supplie