Hosting HTML pages from Domino

Summary

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).

Files

You'll need to create two files in your project (in addition to your files required for your page such as index.html etc)

app.sh

#!/usr/bin/env bash
python ./app.py


app.py

import SimpleHTTPServer
import SocketServer PORT = 8888 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT
httpd.serve_forever()

Publishing

To publish your app, go to the left-hand sidebar in your browser and click Publish.

The Publish page should now be visible in your browser. Click the App tab.Your screen should now look something like this.

 

 

Click the 'Publish' button to publish your app.

Further reading

Getting started with App Publishing. 

 

Was this article helpful?
0 out of 0 found this helpful