Website for visualizing a persons github network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
681 B

const crypto = require('crypto');
const app = express();
const dotenv = require("dotenv").config();
const express = require("express");
const session = require('express-session');
const sessionProperties = {
secret: process.env.SESSION_SECRET || crypto.randomBytes(64),
cookie: { maxAge: 6000000 },
resave: false,
saveUninitialized: false
};
app.use(session(sessionProperties));
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(express.static('public'));
const routes = require('./routes');
app.use('/', routes);
app.listen(process.env.PORT || 8100, () => console.log(`App listening on port ${process.env.PORT || 8100}!`));