I went with using npm as the way to go about getting started with this.
I will also need a means to setup a static server to serve up the index.html as this is one of those projects that will not work well fia the file:// protocol. I put togeather this simple sever.js example that worked for me.
If you have something better in mind go with that, as long as you have a way to sever up the index.html via http.
Now that I have everything installed, and I have my sever.js file ready to go it’s time to throw togetaher a simple index.html file for the project.
This html file just needs to grab the particles.js file, and also a json file that will be used to set up the particles.
As you may have gathered the load method will use what is in the given json file to setup particles which will be used in the given container element. as such also in the root path of the project I places my basic.json file that looks like this:
This allows me to define some values for the particles that are going to be displayed. Also for my basic example I decided to disable interactivity.