It's fairly simple. While I've never made it, it's a matter of grinding blanched almonds with powdered sugar and egg white. Some folks add a dash of almond extract too.
You'll need a food processor. No doubt you can find a raft of recipes on line.
"If you want to make an apple pie from scratch, you must first create the universe." -Carl Sagan