Note: This is literally code from a tutorial, I wouldn't exactly just take this and use it in production, it should be used for learning purposes only!!
I am archiving this repo as it gets the odd bit of activity but isn't something I'm ever going to maintain