mirror of
https://github.com/len0rd/personal-website.git
synced 2026-01-20 08:40:44 -05:00
barebones homepage, added static assets
This commit is contained in:
parent
47dd57e22d
commit
3de0c9a3a5
6 changed files with 42 additions and 13 deletions
|
|
@ -1,6 +1,8 @@
|
|||
var express = require('express');
|
||||
var app = express();
|
||||
|
||||
console.log('Hello');
|
||||
|
||||
// set the view engine to ejs
|
||||
app.set('view engine', 'ejs');
|
||||
|
||||
|
|
@ -10,8 +12,7 @@ app.get('/', function(req, res) {
|
|||
res.render('pages/index');
|
||||
});
|
||||
|
||||
app.get('/about', function(req, res) {
|
||||
res.render('pages/about');
|
||||
});
|
||||
// add folder for static content:
|
||||
app.use(express.static(__dirname + '/assets'));
|
||||
|
||||
app.listen(8080);
|
||||
app.listen(8090);
|
||||
Loading…
Add table
Add a link
Reference in a new issue