app.js 399 Bytes
var express = require('express');
var app = express();
var path = require('path');
var router = require('./router/index')(app);
var urlencode = require('urlencode');
var bodyParser = require('body-parser');


app.set('views',path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

app.use(express.static('public'));

var server = app.listen(9000, function() {
    console.log('Success');
});