@@ -0,0 +1,640 @@
+from bottle import route, run, template, get, debug, static_file%0Aimport json, DB, config%0A%0A@route('/api/addresses/%3Cvalue%3E')%0Adef address_search( value ):%0A    db = DB.sqlite_noFTS()%0A    return db.address_query(value)%0A%0A@route('/api/uprn/%3Cvalue%3E')%0Adef uprn_search( value ):%0A    db = DB.sqlite_noFTS()%0A    return db.uprn_query(value)%0A%0A@route('/static/%3Cfilename:path%3E')%0Adef static(filename):%0A    return static_file(filename, root=%22static%22)%0A%0A@route('/search/%3Cvalue%3E')%0Adef displaySearch(value):%0A    results = address_search(value)%0A    return template(%22searchresults.tpl%22, results=json.dumps( results ))%0A%0Arun(host='localhost', port=8080, debug=True)%0A

Create app.py