{"size": 719, "ext": "js", "max_stars_repo_path": "server.js", "max_stars_repo_name": "vinog-git/tweeter-ui", "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": "vinog-git/tweeter-ui", "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": "vinog-git/tweeter-ui", "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": 32.6818181818, "max_line_length": 86, "alphanum_fraction": 0.6884561892}
require('dotenv').config();

const express = require('express');
const bodyParser = require('body-parser');
const app = express();
const router = express.Router();
const cookieParser = require('cookie-parser');

// app.use(bodyParser.json());
// app.use(bodyParser.urlencoded({extended: true}));

app.use(cookieParser());
app.use('/', express.static('./src/client'));
app.use('/bootstrap', express.static('./node_modules/bootstrap/'));
app.use('/jquery', express.static('./node_modules/jquery/'));
app.use('/fa', express.static('./node_modules/font-awesome/'));

const routes = require('./src/server/routes');

app.use('/',routes);

app.listen(process.env.PORT, ()=> console.log(`listening on ${process.env.PORT}...`));