var express = require('express');
var bodyParser = require('body-parser');
var morgan = require('morgan');
var config = require('./config');

var app=express();

app.use(bodyParser.urlencoded({extended:true}));
app.use(bodyParser.json());
app.use(morgan('dev'));

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

app.listen(config.port, function(err){
	if(err) {
		console.log(err);
	}
	else {
		console.log('Listening on port ' + config.port + '...');
	}
});