Lining up our static website
The next stage is to put together a simple website with some static content, into which we'll be able to drop our super, amazing, awesome real-time display. If we open our main index page index.ejs
(in the views
directory), we can create a static page something like the following:
<html> <head> <meta charset="UTF-8" /> <link rel="stylesheet" type="text/css" href="/css/style.css"> <script type="text/javascript" src="/scripts/primus.js"></script> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0 /smoothie.min.js"> </script> <script type="text/javascript" src="/scripts/xmpp.js"></script> <title>Just another boring static...