How Do I Turn 1kg of Basil into Pesto?

I have the opportunity to buy basil for cheap, and wanted to know how I’d turn this into pesto, basically what would be the proportions in grams.

My goal is to refrigerate/freeze them for future use. (If refrigerate option, how long would it last?)