Your question as asked is much too broad for this site. With that said, here’s how I implemented a solution:
I ended up with a voting system with 50 users who just had to tilt their phones to vote. Note: The tilt thing was very odd… In IOS the tilt floats up, in Android the same tilt motion floats down.
This took me a couple of days to implement, including learning time on how sockets really works, and to hone my node.js skills. I had a lot of fun and I learned a lot. I’m hoping it will work that way for you, too. Good luck.