Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.09 KB

install.md

File metadata and controls

34 lines (23 loc) · 1.09 KB

#Installation

Contributers · Hunter Larco

Installation requires two parts, a server install and client install.

Server Install

  1. Install Google Appengine Python SDK
  2. Copy the device folder into the root of your GAE project
  3. Add the tuple device.Hook to your WSGIApplication. 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

Client Install

  1. Copy device.js into your project
  2. 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.