Hosting HTML pages from Domino¶
This is a simple example on how to host a HTML page on Domino. There are a number of ways to host web applications of course but this example shows how you can integrate a simple HTTP server using python with Domino. You could also add java script and other pages to your project. The example in this note just shows how you would start the server to support your page(s).
You’ll need to create two files in your project (in addition to your
files required for your page such as
#!/usr/bin/env bash python ./app.py
import http.server import socketserver PORT = 8888 Handler = http.server.SimpleHTTPRequestHandler httpd = socketserver.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()