Skip to content
Permalink
Browse files
New files
New files for location tracker
  • Loading branch information
omaram committed Feb 10, 2020
1 parent 590a7ec commit 0d79c95e3daa86386d1021ff28d205ef28372b50
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
@@ -0,0 +1,14 @@
'''simple Hello World which specifies a remote host and port (not localhost) to make use of codio box'''

import cherrypy

class HelloWorld(object):
@cherrypy.expose #use cherrypy
@cherrypy.tools.gzip() #use cherrypy configuration tools
def index(self): #method
return "Hello 4009CEM-world!" #returns string (will appear in browser)

if __name__ == '__main__':
cherrypy.config.update({'server.socket_host': '0.0.0.0'}) #configure host (not 127.0.0.1)
cherrypy.config.update({'server.socket_port': 3000}) #configure port
cherrypy.quickstart(HelloWorld(), '/', {'/': {'tools.gzip.on': True}}) #start application; provide configuration support
BIN +20 KB locations.db
Binary file not shown.

0 comments on commit 0d79c95

Please sign in to comment.