Skip to content

Instantly share code, notes, and snippets.

@DavidYKay
Created August 15, 2018 00:38
Show Gist options
  • Save DavidYKay/faa9974e055537255aa3cc061b462099 to your computer and use it in GitHub Desktop.
Save DavidYKay/faa9974e055537255aa3cc061b462099 to your computer and use it in GitHub Desktop.
# Web.py uses a different URL.
# Please go into HttpActor.cpp and change the designated URL, as follows:
Request->SetURL("http://localhost:8080/");

To get started:

  • Install Python 3
  • Install pip (if not installed by the above step)
  • pip install bottle - installs the Bottle library, used by web.py
  • python web.py - runs the webserver
from bottle import *
@get('/')
def serve_json():
return {"customInt": 1234}
run(host='localhost', port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment