There are several methods for carbonating beer.
One common method is to force carbonate, and you can find a demonstration of this method in this video:
Another approach is the 'set and forget' method, where you adjust the pressure according to the temperature and your desired carbonation...