To run it locally just run
npm run start.
The P5JS sketch that I created was orignally copied from here.
I found this stackoverflow article helpful when setting up P5JS with Angular.
If you wanted to move the sketch around on the page, I found this page on the Processing Wiki helpful.