quickprojects
Version:
QuickProjects makes it easy to create templates for programming projects without having to use an IDE.
18 lines (14 loc) • 435 B
Plain Text
const express = require('express');
const app = express();
const path = require('path');
const fs = require('fs');
// Setup to use ejs as the view engine and the source folder for static files.
app.set('view engine', 'ejs');
app.use(express.static(__dirname + '/src/'));
// Setup the roots
app.get('/', (req, res) => {
res.render('pages/Home');
});
app.listen(8080, () => {
console.log('App Running at localhost:8080!');
})