#Installation
Contributers · Hunter Larco
Installation requires two parts, a server install and client install.
- Install Google Appengine Python SDK
- Copy the device folder into the root of your GAE project
- Add the tuple
device.Hook
to yourWSGIApplication
. An example is below
import device
app = webapp2.WSGIApplication([
device.Hook,
('/.*', MainHandler)
], debug=True)
Nice job! You're all set. Now you need to install the client device.js file
- Copy device.js into your project
- Add it as well as the channel api client script into your html. An example is below.
<script type='text/javascript' src='./device.min.js'></script>
<script type='text/javascript' src='/_ah/channel/jsapi'></script>
Congrats! You're all finished! Happy coding. Check out the Device.js Docs if you need help getting started.