We all have our first time, and that's okay. For your next grow, there are more factors to consider.
Light height: if your plant looks leggy, it means your light was too high. Research the watts of your panel and adjust it to the proper height.
Topping: this technique helps with the horizontal growth of the plant so you can control its height.
LST training: this involves tying down branches to open up the plant's structure and allow light to penetrate, generating more buds.
There are more techniques to increase yield and keep learning in this wonderful world of growing. The ones mentioned are the basics.
Cheers, and keep learning because knowledge is power.