{"size": 748, "ext": "js", "max_stars_repo_path": "server.js", "max_stars_repo_name": "angelasanecki/burger", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server.js", "max_issues_repo_name": "angelasanecki/burger", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server.js", "max_forks_repo_name": "angelasanecki/burger", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.6842105263, "max_line_length": 63, "alphanum_fraction": 0.7005347594}
var express = require("express");
var bodyParser = require("body-parser");
var methodOverride = require("method-override");
var exphbs = require("express-handlebars");


var port = 3000;

var app = express();


// look for static conetne in the public directory

app.use(express.static(process.cwd() + "/public"));

//config for body parser

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.text());
app.use(bodyParser.json({ type: "application/vnd.api+json" }));


//using method override
app.use(methodOverride("_method"));


//setting up handlebars

app.engine("handlebars", exphbs({ defaultLayout: "main"}));

app.set("view engine", "handlebars");



// app.use("/", routes);

app.listen(port);