To use the app template as described you first have to implement session management look at this example and customize the authentication schema (basic auth) used to interact with the restful-api provided in the data-adapter file.
rendr-app-template/server/lib/data_adapter.js.
basicAuth = process.env.BASIC_AUTH;
if (basicAuth != null) {
authParts = basicAuth.split(':');
api.auth = {
username: authParts[0],
password: authParts[1],
sendImmediately: true
};
}