Search
 
SCRIPT & CODE EXAMPLE
 

HTML

engine html

var express     = require('express');
var app         = express();
var port        = process.env.PORT || 8081;

var path        = require('path');
var http        = require('http');
var router      = express.Router();
//var data        = require('./routes/data');

// Setting the view engine and defining paths
app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.use(express.static(path.join(__dirname, 'public')));
app.set('views', path.join(__dirname, 'views'));

require('./routes/routes')(app);

app.listen(port, function () {
    console.log('server running on port ' + port);
});

module.exports = app;
Comment

PREVIOUS NEXT
Code Example
Html :: Full Form Of RAR 
Html :: WebView Dump all html 
Html :: bootstrap display error message 
Css :: css image to white 
Css :: center position fixed 
Css :: reset a tag css 
Css :: css way media query 
Css :: center div in middle of page 
Css :: how to change the underline thickness in css 
Css :: @media between two sizes 
Css :: remove boldness css 
Css :: not clickable css 
Css :: hide number trigger in html page 
Css :: smooth scroll css 
Css :: how to remove background color in css 
Css :: flexbox 3 columns 
Css :: create a specific form size and center in css 
Css :: css content space 
Css :: css flip image horizontally 
Css :: how to have a background image with a color overlay 
Css :: half circle css 
Css :: excel arabic numbers 
Css :: css set width of a span 
Css :: css dark filter over image 
Css :: symfony version check 
Css :: center anything horizontally and vertically in CSS 
Css :: responsive container css 
Css :: backwards text css 
Css :: chrome hide blue highlight css mobile 
Css :: css text justify 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =