I currently building an electron app for a raspberry pi demo. And came across a few people running into problems, so I ported the quick-start app to work on the Pi using resin.io. (although this should work on any resin.io device).
You can find the code here. All the instructions are in the readme, but let me know if anything is unclear.