{"size": 618, "ext": "js", "max_stars_repo_path": "apps/server.js", "max_stars_repo_name": "collinL34/learningMean", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "apps/server.js", "max_issues_repo_name": "collinL34/learningMean", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "apps/server.js", "max_forks_repo_name": "collinL34/learningMean", "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": 25.75, "max_line_length": 63, "alphanum_fraction": 0.7038834951}
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const methodOverride = require('method-override');

// mongoose.connect();

require('./config/db.js');

let port = process.env.PORT || 8080;

app.use(bodyParser.json());
app.use(bodyParser.json({ type: 'application/vnd.api+json' }));
app.use(bodyParser.urlencoded({ extended: true }));
app.use(methodOverride('X-HTTP-Method-Override'));
app.use(express.static(__dirname + '/public'));

app.listen(port);

console.log('Magic happens on PORT' + port);

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

exports = module.exports = app;