Browser based device setup template

photon
Tags: #<Tag:0x00007f038c7a8af0>

#1

Hey everyone,

I recently have been building some tools to help get photon/P1 devices configured and connected, and just finished putting together a base template that I thought might be helpful for people to use for a web browser based setup. You can check it out here.

If you’ve ever seen the way particle does this at setup.particle.io, you’ll have noticed that there are two different levels to the app - first an online portion that a user can use to authenticate, and secondly a local file that you can download and run to finish setup. As mentioned in this post, this is done for security reasons.

It took me a while to figure out how to manage this, and I was also looking for an opportunity to learn Webpack a little better, so I decided to put together a rough structure that people could use to base their own browser setups on if they so choose.

Hopefully it can be helpful to others. If someone wants to pitch in to make it better, I am very open to feedback and PRs.

Happy building!


#2

Thank you for sharing!