beginning migration to EJS for development of the app main page

This commit is contained in:
booploops 2021-12-06 16:46:11 -08:00
parent b8d5dec9e6
commit a26754d819
7 changed files with 787 additions and 3 deletions

View file

@ -112,9 +112,13 @@ const CiderBase = {
const webRemotePort = await getPort({port : 9000});
const webapp = express();
const webRemotePath = path.join(__dirname, '../cider-ui-tests/');
webapp.set("views", path.join(webRemotePath, "views"));
webapp.set("view engine", "ejs");
webapp.use(express.static(webRemotePath));
webapp.get('/', function (req, res) {
res.sendFile(path.join(webRemotePath, 'index.html'));
//res.sendFile(path.join(webRemotePath, 'index_old.html'));
res.render("main")
});
webapp.listen(webRemotePort, function () {
console.log(`Web Remote listening on port ${webRemotePort}`);