gym or at home workout

T
Really want to start working out and gaining weight, staying fit. So before I invest in a gym membership or think about purchasing equipment, what are your preferences or experiences between the two?