try reading up soil and compost, managing your own garden, weeds, rats, sunlight direction, bacteria, biology....TIME....etc.
Id love to do it but its really harder than it looks. Unless you just want to have some basil on a pot, pick on it for your pasta or pizza toppings and watch it replenish until it slows down replenishing.
Note to self...... Should have bought 10 pots of basil.