{"size": 827, "ext": "js", "max_stars_repo_path": "server.js", "max_stars_repo_name": "Daepak98/shindig_server_generator", "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": "Daepak98/shindig_server_generator", "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": "Daepak98/shindig_server_generator", "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": 23.6285714286, "max_line_length": 65, "alphanum_fraction": 0.6372430472}
const express = require('express');
const firebase = require('firebase');
const app = express();
require("firebase/firestore");

// Initialize Firebase
// TODO: Replace with your project's customized code snippet
var config = {
	apiKey: "AIzaSyCuiweDbLGFewHZ8U9FFo99X27_8BJvKL8",
    authDomain: "shindig-c3e03.firebaseapp.com",
    projectId: "shindig-c3e03",
};
firebase.initializeApp(config);

var db = firebase.firestore();

app.set('view engine', 'pug');

const server = app.listen(7000, () => {
	console.log(`Express running → PORT ${server.address().port}`);
});

app.get('/', (req, res) => {
	res.render('index', {
		title: 'Making Memories',
		date: '4/09/19',
		loc: 'Ohio Union',
		desc: 'Party for your friends'
	});
});

app.get('/analytics', (req, res) => {
	res.send("duh");
})
