Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by StevenNathaniel on 23-Jun-16.
- */
- var express = require('express');
- var app = express();
- var path = require('path');
- var pug = require('pug');
- var bodyParser = require('body-parser');
- var fs = require('fs');
- app.set('view engine','pug');
- app.set('views',__dirname + '/views');
- app.use(bodyParser.urlencoded({extended: true}));
- app.get('/', function(req, res) {
- res.render("halaman3.pug");
- });
- app.listen(3000);
- console.log("server berjalan di localhost port 3000");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement