Instructions for setting up postgres for the first time

Problem

You need to set up postgres for the first time in a new computer and you need the instructions in one place.

Solution

Follow the example given in the answer below:

here