The files in this gist demonstrate a fairly basic setup for a JSS rendering host.
DISCLAIMER: No guarantees that the code actually runs as-is. It was largely edited in place, so there may be typos or small syntax errors that you'll need to correct in your editor of choice. Feel free to leave a comment with any necessary fixes.
-
Sitecore config:
jss-app-config.config
This file is meant to show you how to setup your app config to use an external rendering host. -
Entry point:
jss-rendering-host-tunnel.js